Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Info about multiple files compiling
Info about multiple files compiling [message #200213] Fri, 24 August 2007 11:29 Go to next message
Eclipse UserFriend
Originally posted by: basquale.fersini.libero.it

Hi all,
It's first time i write in this newsgroup.
I would know if is possible to compile most files containing main()
function in the same project as separate executable.
Now I receive from compiler errors like:
"multiple definition of 'int main()...' "

Any help appreciated,
Pas.
Re: Info about multiple files compiling [message #200230 is a reply to message #200213] Fri, 24 August 2007 13:17 Go to previous message
Mehdi Rabah is currently offline Mehdi RabahFriend
Messages: 11
Registered: July 2009
Junior Member
Pas a écrit :
> Hi all,
> It's first time i write in this newsgroup.
> I would know if is possible to compile most files containing main()
> function in the same project as separate executable. Now I receive from
> compiler errors like:
> "multiple definition of 'int main()...' "
>
> Any help appreciated,
> Pas.

Hi,
AFAIK, a managed cdt project can compile only one executable or library.
If you want to create a complex project you have to write a makefile or
your own (using cmake for example, an integration of cmake and cdt is
being done http://www.cmake.org/Wiki/Eclipse_CDT4_Generator_Development)

Mehdi
Previous Topic:content assist doesn't work on CDT 4.0.0
Next Topic:binding 'build selected file' to a key?
Goto Forum:
  


Current Time: Wed Jan 15 07:58:37 GMT 2025

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

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

Back to the top