[SDL] SDL and CodeWarrior Pro 8
Magnus Sjöstrand
magnus.sj at telia.com
Mon Dec 16 08:39:01 PST 2002
Hi,
has anyone been able to link an SDL app with CodeWarrior 8 Pro? I've
been able to compile my app but I get a couple of link errors.
These are the errors I get. I've included the SDLmain, SDL, SDL_ttf,
SDL_image.
---- link errors ----
Link Error : Undefined symbol: '__declspec(dllimport) _exit (__imp__exit)'
referenced from '_main' in SDL_main.obj (SDLmain.lib)
Link Error : Note: symbol '_exit' found in 'MSL_All-DLL_x86.lib';
your project may need MSL_All-DLL_{x86,3DNow,MSE}[_D].lib instead
Link Error : Undefined symbol: '__declspec(dllimport) __iob (__imp___iob)'
referenced from '_cleanup_output' in SDL_main.obj (SDLmain.lib)
referenced from '_cleanup_output' in SDL_main.obj (SDLmain.lib)
referenced from '__stdcall(16) WinMain (_WinMain at 16)' in SDL_main.obj
(SDLmain.lib)
referenced from '__stdcall(16) WinMain (_WinMain at 16)' in SDL_main.obj
(SDLmain.lib)
referenced from '__stdcall(16) WinMain (_WinMain at 16)' in SDL_main.obj
(SDLmain.lib)
referenced from '__stdcall(16) WinMain (_WinMain at 16)' in SDL_main.obj
(SDLmain.lib)
referenced from '__stdcall(16) WinMain (_WinMain at 16)' in SDL_main.obj
(SDLmain.lib)
referenced from '__stdcall(16) WinMain (_WinMain at 16)' in SDL_main.obj
(SDLmain.lib)
...
Link Error : Undefined symbol: '__declspec(dllimport) __pctype
(__imp___pctype)'
referenced from '_ParseCommandLine' in SDL_main.obj (SDLmain.lib)
referenced from '_ParseCommandLine' in SDL_main.obj (SDLmain.lib)
Link Error : Undefined symbol: '__declspec(dllimport) ___mb_cur_max
(__imp____mb_cur_max)'
referenced from '_ParseCommandLine' in SDL_main.obj (SDLmain.lib)
referenced from '_ParseCommandLine' in SDL_main.obj (SDLmain.lib)
Link Error : Undefined symbol: '__declspec(dllimport) __isctype
(__imp___isctype)'
referenced from '_ParseCommandLine' in SDL_main.obj (SDLmain.lib)
Check the library link order for inconsistencies:
MSL_All-DLL_x86.lib
User32.lib
Kernel32.lib
Gdi32.lib
SDLmain.lib
SDL.lib
SDL_image.lib
SDL_ttf.lib
opengl32.lib
glu32.lib
ws2_32.lib
advapi32.lib
/Magnus
More information about the SDL
mailing list