How to compile a C project with more than one main function?
- by Daziplqa
Hi folks,
I am new to C, and now read some textbook and going to apply its examples.
The problem is, whenever I creates a new project and try to put more than one file that contains a main function, the linker (as I thougt0 explains saying:
/home/mohammed/tmp/abcd/main.c:4: multiple definition of `main'
(BTW, I used many IDEs, MonoDevelop, QT creator, VS2010, Codebloks, ...)
I am currently uses QT Creator, It seems to be a very nice IDE.
So, there's not a workaround to solve such problem??