Results 1 to 3 of 3
Hi,
I am designing the User interface using fancypants opensource library having entry point is fp_main().
To generalize my module with another modules i want to change fp_main() to main()
...
- 07-30-2009 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 50
How to change name of main() to another or reverse
Hi,
I am designing the User interface using fancypants opensource library having entry point is fp_main().
To generalize my module with another modules i want to change fp_main() to main()
Can I give some preprocessing commands to compiler for this? Is it possible?
Or something with another solution?
Please help!
- 07-30-2009 #2Just Joined!
- Join Date
- Feb 2008
- Posts
- 50
I did it at command prompt while compile my sample application, by giving -D option
e.g. -Dfp_main=main
But I am using Eclipse IDE where I am unable to compile application with -D option
Does anybody know, how to set -D at Eclipse.
I tried with Project Properties->C/C++ Build->Linker flags at Miscellaneous option.
- 07-30-2009 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 50
SOLVED...

I got it at Eclipse also and it is working now with main().



Reply With Quote