SDL and CodeWarrior Pro 8

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

I have never used CodeWarrior, but it looks like it is expecting to link
to some DLLs. I know in the windows world, with visual C++, you need to
tell it to compile for use with a C “multi-threaded dll” environment.
Hopefully there is something similar in CodeWarrior.

Hope this helps,
Robert

Hope this helps,On Mon, 2002-12-16 at 10:38, Magnus Sj?strand wrote:

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


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl