Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Compiling multiple programs in a project
Compiling multiple programs in a project [message #762809] Thu, 08 December 2011 16:43 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 #762828 is a reply to message #762809] Thu, 08 December 2011 17:07 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08-Dec-11 09:43, Michael wrote:
> 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?

As pointed out by sticky posts at the top of this forum, you're better
off asking C/C++ questions in the Eclipse CDT forum.
Previous Topic:Adding a new file to a project build
Next Topic:Error when trying to open Eclipse
Goto Forum:
  


Current Time: Fri Mar 29 11:54:00 GMT 2024

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

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

Back to the top