Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » project work space Demo/Tutorial
project work space Demo/Tutorial [message #883894] Sat, 09 June 2012 13:31 Go to next message
Tracey is currently offline Tracey
Messages: 14
Registered: July 2009
Junior Member
I am working through a C Tutorial.
Is it possible to put all the tutorial lessons (each lesson/mini-program
with it's own main function) in the same project folder?
If so, how?
Or do I have to create a separate project folder for each lesson?

I tried to build the 2nd lesson, but the build fails due to the main
function already defined in the first lesson.
Any help will be appreciated.
Thanks, Tracey
Re: project work space Demo/Tutorial [message #884943 is a reply to message #883894] Tue, 12 June 2012 02:35 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
You can create a build configuration for each lesson.

In Project->Properties->C/C++ General->Paths and Symbols". Select your build configuration and go to the "Source Location". This way you can choose which source to include.

Here you can set the artifact name (name of executable):
http://help.eclipse.org/indigo/topic/org.eclipse.cdt.doc.user/reference/cdt_u_prop_build_settings_artifact.htm


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:How to make Build Console interactive?
Next Topic:SSE intrinsics and intellesense not working
Goto Forum:
  


Current Time: Wed Aug 20 00:54:39 EDT 2014

Powered by FUDForum. Page generated in 0.03172 seconds