Quote:
Originally posted by tclwp
Thank you for replying
but I use Standard Make C Project and
write my own makefile to resolve the problem
the C files are complied together,
because they work together,
I just want to know how to resolve it in Managed Make C Project
|
You may need to research this in your manual but try something like this'
Code:
#ifdef XP
main()
/* code for XP
#endif
#ifdef MAC
main()
/*code for MAC
#endif
Then let your make file tell the compiler which one to use.
As Matir has said, YOU CAN ONLY HAVE ONE MAIN FUNCTION.
So stated in The C Programming Language by Kernighan and Richie Chapter 1 Section 1.1.
It sets your entry point to the program. It can be the first function or the last function.