I want to know why i receive that error when compile C++ program using SDL:
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external
symbol _SDL
_main referenced in function _main
#include “SDL.h” in the file with your main() function…on Windows, it
will #define main to be SDL_main, which gets called from the WinMain()
in SDLmain.lib.
Alternately, define your own WinMain() and don’t use SDLmain.lib.
El S?bado, 20 de Enero de 2007 18:06, Ryan C. Gordon escribi?:
I want to know why i receive that error when compile C++ program using
SDL:
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external
symbol _SDL
_main referenced in function _main
#include “SDL.h” in the file with your main() function…on Windows, it
will #define main to be SDL_main, which gets called from the WinMain()
in SDLmain.lib.
On Windows, I have also found that declaring main as
int main()
won’t do. Your “main” function should be defined as