...
Common
Project -> Properties -> Configuration Properties -> Linker -> System->Console.
...
Specially
We also had this problem. My colleague found a solution. It turned up to be a redefinition of "main" in a third party library header:
#define main SDL_main
So the solution was to add:
#undef main
before our main function.
This is clearly a stupidity!
Oh, in SDL_main.h, there's a comment about "Redefine main() on some platforms so that it is called by SDL." then: #ifdef WIN32 #def SDL_MAIN_AVAILABLE #endif ... #if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE) #define main SDL_main #endif As @Csq said, it looks like there's a better way to initialize SDL2. – Nick Desaulniers
No comments:
Post a Comment