Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: fl4ke on January 09, 2007, 11:43:30 pm
-
Hello
I'm using C::B for a wile now and I never had any problems. But today I started a new Project, which uses some OpenGL functions.
I get a linker error because there is also a main() function in my code but it's a Windows GUI app.
MSDN has got a solution for the problem:
In the Output category of the Link tab in the Project Settings dialog box, set the Entry Point Symbol to wWinMainCRTStartup.
For Visual C++ .NET: In the Advanced category of the Linker folder in the Project Properties dialog box, set the Entry Point to wWinMainCRTStartup.
And here is my question: Where can I set this entry point in C::B?
I couldn't find anything like this!
I'm using VC++ Toolkit 2003
Thanks!
-
And here is my question: Where can I set this entry point in C::B?
I couldn't find anything like this!
Set /entry:"wWinMainCRTStartup" in the additional linker options and that should be it.. You could also "ifdef" your "old" main function.
With regards, Morten.