[SDL] compile error under vc++ - unresolved external symbol
Peter Mulholland
darkmatter at freeuk.com
Sun Jul 16 20:33:29 PDT 2006
Albert Ridolfi wrote:
> I found a tutorial that told me to add to the code:
> #ifdef WIN32
> #pragma comment(lib, "SDL.lib")
> #pragma comment(lib, "SDLmain.lib")
> #endif
>
> Now it's working. Thanks for the help
If that works, then you were not correctly adding the libs to the linker
settings.
Project->Properties->Configuration Properties, Linker, Input and add the
libs in the "Additional Dependancies" box. Make sure you do it for all
build configurations.
Pete.
More information about the SDL
mailing list