Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:How to make Build Console interactive?
Next Topic:SSE intrinsics and intellesense not working
Goto Forum:
  


Current Time: Wed Jul 23 11:14:53 EDT 2025

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

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

Back to the top