Author Topic: Set Entry Point?  (Read 8489 times)

fl4ke

  • Guest
Set Entry Point?
« 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:
Quote
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!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Set Entry Point?
« Reply #1 on: January 10, 2007, 12:05:34 am »
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ