Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compiling multiple programs in a project
Compiling multiple programs in a project [message #762852] Thu, 08 December 2011 17:54 Go to next message
Michael Beatty is currently offline Michael BeattyFriend
Messages: 43
Registered: November 2011
Member
I have two independent C programs within one project. When I try to build the project, Eclipse is trying to compile them together. This results in a "multipile definition of main" compiliation error.

How do I tell eclipse that I want to compile them separately?
Re: Compiling multiple programs in a project [message #763131 is a reply to message #762852] Fri, 09 December 2011 08:28 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
You have two possibilities:
1) put the two programmes into two separate projects
2) create your own Makefile with different make targets for each programme


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:ISO C++ forbids declaration of 'QwtPlot' with no type
Next Topic:Debugger problem reading symbol information
Goto Forum:
  


Current Time: Thu Apr 25 20:17:39 GMT 2024

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

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

Back to the top