[SDL] compile error under vc++ - unresolved external symbol
Peter Mulholland
darkmatter at freeuk.com
Sat Jul 15 19:01:54 PDT 2006
Albert Ridolfi wrote:
> Hello,
>
> I installed SDL 1.2 into my VC++ 2005 (Windows) and it worked fine, and
> later I tried to install SDL Mixer. First I used the precompiled lib files
> available for download on the SDL website, and I tried to compile the
> following code:
<snip>
VS2005 might have changed the symbol format. You are best building
SDL/SDL_mixer yourself.
> int _tmain(int argc, _TCHAR* argv[])
Don't do this. Your code will not be handled correctly by the SDL entry
point code.
> The compiler gave me two errors:
> Error 1 error LNK2019: unresolved external symbol _Mix_LoadWAV_RW
> referenced in function _wmain sdltest2.obj
> Error 2 error LNK2019: unresolved external symbol _SDL_RWFromFile
> referenced in function _wmain sdltest2.obj
Are you adding the libs to your linker settings?
Some headers use #pragma (lib, "blah.lib") to make this unneccesary. SDL
doesn't because that isn't portable.
Pete.
More information about the SDL
mailing list