What Eclipse is for
- Eclipse can format our code
- it will verify syntax
- we will use it to build or compile our C++ application
- we are to create a run configuration (how to compile and run) so we can run our prograns
- we are to create debug configurations (how to debug) so we can debug
Some Preferences:
One thing we must do is set the path to the debugger in preferences to the full path so /usr/local/bin/gdb and not gdb.
Creating an Eclipse Project
We want to get used to the idea of using both the Terminal shell and Makefiles as well as Eclipse. So we are going to create an Eclipse Project based on the existing Code (and Makefile). Use the Wizard in the manner below:
Create a source file using vim or using Eclipse:
Compiling/Building your program with Eclipse
To compile with Eclipse we build. After a sucessful buid we are ready to Run our prrogram.
Run the program / Execute the program
To compile we build which will refer to our Makefile.