Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Multiple main
Multiple main [message #874917] Mon, 21 May 2012 15:53 Go to next message
Eclipse UserFriend
I'm in a project that requires multiples main for some reason.

So I tried to define different files, for example:

main
int main(int argc,char** argv)

mainA
int mainA(int argc,char** argv)

mainB
int mainB(int argc,char** argv)

And I want to call mainA and mainB for the principal main and I get the multiple main definition!!

If that doesn't work can be possible in Eclipse to generate two executables in the same project?
Re: Multiple main [message #875287 is a reply to message #874917] Tue, 22 May 2012 09:24 Go to previous message
Eclipse UserFriend
You have to use a different build configuration for each executable.
Previous Topic:Indexer ... it seems I cant get how it is supposed to work
Next Topic:Ubuntu + Eclipse CDT
Goto Forum:
  


Current Time: Thu Jul 10 03:01:31 EDT 2025

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

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

Back to the top