choosing which main() to use in the Makefile

Posted by Jules Olléon on Stack Overflow See other posts from Stack Overflow or by Jules Olléon
Published on 2010-03-23T09:52:06Z Indexed on 2010/03/23 10:03 UTC
Read the original article Hit count: 186

Filed under:
|

In a C project, I have a main() function in several files. When I compile I thus have an error "multiple declarations of main". Is it possible to choose in the Makefile which one of those main() functions should be used to compile ? (the other ones would then be ignored...)

© Stack Overflow or respective owner

Related posts about makefile

Related posts about c