|Re: C++ in Eclipse - From the beginning [message #1781411 is a reply to message #1781297]
||Wed, 07 February 2018 01:34
Registered: October 2012
You can only run executables.|
You have to compile the source then link the resultant object files along with system libraries to produce an executable.
This is called "Building".
To build either
1) use the hammer icon in the upper left of the toolbar
after using the down arrow next to it to select the configuration
or 2) select Project --> Build Project from the menu
you define which configuration to build with menu Project --> Build Configurations --> Set Active
The "Debug" configuration will add debugging information during the compile that is needed by the debugger.
Note that Eclipse only creates a makefile which is used by Make to build the executable.
You should read some tutorials on using Make and GCC.
For example, https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
If you don't know how to build executables without Eclipse then what Eclipse does will likely remain a mystery to you.
Powered by FUDForum
. Page generated in 0.01657 seconds