Difference between revisions of "C Projects in Eclipse"
Line 11: | Line 11: | ||
* C/C++ General > Paths And Symbols > GNU C++ |
* C/C++ General > Paths And Symbols > GNU C++ |
||
* Add ... > Workspace |
* Add ... > Workspace |
||
* Choose your lab project root folder (lab03) |
* Choose your lab project root folder (lab03), OK, OK, OK |
||
Now you should be able to work with your project. |
|||
Keyboard shortcuts worth knowing (On MacOS Ctrl must be replaced by Cmd for most of the shortcuts): |
|||
* Ctrl+B - build your project. Check Console window for error messages |
|||
* Ctrl+Tab - switch between source and header files (.c and .h) |
|||
* F3 or Ctr+Left click on a function, variable, macro - go to its declaration/definition |
Revision as of 17:20, 22 November 2009
- Download Eclipse CDT - from the list Choose "Eclipse IDE for C/C++ Developers".
- Unarchive and run downloaded Eclipse
- Close "Welcome screen", if you're running Eclipse for the first time
- Choose File > New > C Project
- Type in a name, for example, lab03
- Uncheck "Use default location"
- Browse you lab root folder as Location
- Choose "Makefile Project > Empty project" as Project type
- Press "Finish"
- A New project folder will appear on the left side, right click on it, properties
- C/C++ General > Paths And Symbols > GNU C++
- Add ... > Workspace
- Choose your lab project root folder (lab03), OK, OK, OK
Now you should be able to work with your project.
Keyboard shortcuts worth knowing (On MacOS Ctrl must be replaced by Cmd for most of the shortcuts):
- Ctrl+B - build your project. Check Console window for error messages
- Ctrl+Tab - switch between source and header files (.c and .h)
- F3 or Ctr+Left click on a function, variable, macro - go to its declaration/definition