c++ Programming Glossary: sdl_main
Why SDL defines main macro? http://stackoverflow.com/questions/11976084/why-sdl-defines-main-macro that SDL defines a macro that replaces main #define main SDL_main And then extern C_LINKAGE int SDL_main int argc char argv This.. main #define main SDL_main And then extern C_LINKAGE int SDL_main int argc char argv This can also create compilation errors if.. take a look at the SDL source code in src main win32 SDL_main.c to see what kind of initialization you need to do in your..
How do you get a minimal SDL program to compile and link in visual studio 2008 express? http://stackoverflow.com/questions/396183/how-do-you-get-a-minimal-sdl-program-to-compile-and-link-in-visual-studio-2008-e with SDL.lib and SDLmain.lib. Defining main as main or SDL_main gives the same error with or without extern C . Edit I solved.. entry point. SDLmain.lib contains this entry point and the SDL_main.h header file has a macro that remaps your main function to.. header file has a macro that remaps your main function to SDL_main. This function is called by the entry point in the SDLmain library...
Compiling with int main(void) fails; main(int argc, char *argv[]) succeeds. Why? http://stackoverflow.com/questions/8673378/compiling-with-int-mainvoid-fails-mainint-argc-char-argv-succeeds-why On Windows when you include SDL.h main is redefined to SDL_main which calls WinMain the real entry point in non console Windows..
|