Installing and Creating a Project in Eclipse C++

MAC users:

A student has provided this information for you (I do not have a MAC to give you exact directions):

  1. Install Eclipse x86_64 for Mac
    Installation is basically the same as Windows
  2. Open Mac Command terminal
  3. Type gcc command to check for a gcc compiler
  4. If no compiler is present, use the xcode—select --install command or download XCode from the App Store
  5. Install XCode and accept the user agreement
  6. Select MacOSX GCC when creating a new Eclipse project
  7. Youtube video for How to Use Eclipse on MAC

Installing Eclipse PART ONE
  1. Go to Eclipse downloads
  2. Choose the download link for x86_64
  3. Open the eclipse-inst-jre-....exe
  4. Once the Eclipse installer starts, select "Eclipse IDE for C/C++ Developers"
  5. Click Install
  6. Accept license agreement
  7. You may need to Trust the selceted digital signature
  8. Select Launch to Verify it opens
  9. Select where you want your C++ projects to be stored
  10. Once it has completed loading, exit

Eclipse Install PART TWO: Download and install the MinGW toolchain

  1. Go to sourceforge.net/projects/mingw
  2. Click on Download
  3. Open mingw-get-setup.exe
  4. Click Install
  5. Installation Directory of c:\MinGW
  6. Click Continue
  7. BE PATIENT
  8. Click Continue
  9. Select mingw32-gcc-g++ and Mark for installation
  10. Select the Installation Tab, Apply CHanges
  11. Click Apply
  12. BE PATIENT
  13. Click Close
  14. Exit the Installation Manager


Using Eclipse

  1. Start Eclipse
  2. If you get the Welcome window, click the orange arrow on the top right
  3. Click On File
  4. Click on New
  5. Select Project...
  6. Expand the C/C++ options
  7. Select C++ Project
  8. Click on Next
  9. Type in a Project name (e.g., Lab1)
  10. On the left, choose Hello World
  11. On the right, choose MinGW toolset
  12. Click Finish

Eclipse is now ready for you to code

  1. Correct the description to be appropriate for your project
  2. Modify the c++ code in main as needed
  3. Build the project:
    Select Project from the menu
    Select Build project
  4. The small console window on the bottom will show your errors and warnings
  5. If there are no errors, run the program
  6. Select run from the menu
  7. Select Run As
  8. Select "Local C/C++ Application"
  9. Program output will appear in console