Codewarrior for windows and SDL

Hello everyone,

I am trying to set up an SDL project using Metrowerks
Codewarrior 7 but so far all my afforts have proved
futile. From looking through the newsgroups I see that
this is a common problem but I found no solutions.

I get 9 link errors:

Link Error : Undefined symbol: __imp__exit in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__strncpy in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__strrchr in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__fprintf in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp___iob in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__remove in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__fopen in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__fgetc in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__fclose in
SDLmain.lib (.\Release\SDL_main.obj)

I have SDL.lib and SDLmain.lib included in my project,
I have the SDL.dll file in the same directory the
executable would appear if it could compile one. I
think I have all the necessary paths set,
c:/LIB_SDL/SDL-1.2.6/lib and the
c:/LIB_SDL/SDL-1.2.6/include.

My code is nothing more than:

#ifdef WIN32
#pragma comment(lib, “SDL.lib”)
#pragma comment(lib, “SDLmain.lib”)
#endif

#include “SDL.h”

int main(int argc, char **argv)

{
return 0;
}

What am I doing wrong?

In a forum someone suggested that I am not linking the
to the Multithreaded DLL version of the C runtime
library. Which library is that and how can I link to
it?

Thank you,

Pancho__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com