Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Info about multiple files compiling
Info about multiple files compiling [message #200213] Fri, 24 August 2007 07: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 09:17 Go to previous message
Eclipse UserFriend
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 Apr 16 04:13:10 EDT 2025

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

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

Back to the top