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 17:31 Go to next message
Tracey is currently offline TraceyFriend
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 06:35 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
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):
Previous Topic:Wrong debugger reporting
Next Topic:delayed console display
Goto Forum:

Current Time: Tue Mar 28 00:58:19 GMT 2017

Powered by FUDForum. Page generated in 0.02847 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software