[SDL] Linking to SDL.dll
sdl at loritz.net
Sat Apr 19 04:12:14 PDT 2008
> "Error: Unresolved external '_SDL_GetError' referenced from ..."
> The reason seems to be the way this function is exported from the DLL
> (or, at least, handled by IMPLIB when creating SDL.lib from SDL.dll).
Indeed, there seems to be a bug in IMPLIB (possibly in ILINK32, too).
I solved the problem by an intermediate IMPDEF step:
IMPDEF -a SDL.def SDL.dll
IMPLIB -c SDL.lib SDL.def
Linking worked flawlessly after that. Apparently, the DLL extraction routine in
IMPDEF does not have the bug.
More information about the SDL