Holidays and Hobbies
  • Home
  • Brasil
  • Rome
  • Paris
  • Fabio
    • Data Science Blog
    • Music
    • Rubiks Cube
    • Astronomy
    • Art
    • Unicycle
    • English Pope
    • Flying
    • If I Ruled The World
    • Fusion
  • Local
  • Tenby
  • Keswick
  • Mark
  • Store
  • Contact
  • cplusplus

Using Eclipse as an IDE for C++

8/27/2018

 

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:
Picture
Import your code and Makefile
Picture

Create a source file using vim or using Eclipse:

Picture
Picture

Compiling/Building your program with Eclipse

To compile with Eclipse we  build. After a sucessful buid we  are ready to Run our prrogram.
Picture

Run the program / Execute the program

Picture


To compile we build which will refer to our Makefile.

Comments are closed.

    Author

    A look at C++ From scratch.

    RSS Feed

    Archives

    August 2018

    Categories

    All

    RSS Feed