Setting up SDL in Codewarrior Pro 8.3 for Windows

Hi,
I’m developing an OpenGL app and would like to use SDL to init the window,
etc.
I create a Windows GUI App with default entry point WinMainCRTStartUp and
include the SDL.lib and SDLmain.lib, when compiling I get an undefined symbol
error (winmain at 16)
What do I have to do?

I don’t think SDL is so happy with that WinMain-thingy… SDL just
wants you to use

int main(int argc, char *argv[]) { … }

… and it will take care of any platform-specific [Mm]ain*-function.

See docs…

/Olof

Kevin0235 at aol.com: "[SDL] setting up SDL in Codewarrior Pro 8.3 for…

#Hi,
#I’m developing an OpenGL app and would like to use SDL to init the window,
#etc.
#I create a Windows GUI App with default entry point WinMainCRTStartUp and
#include the SDL.lib and SDLmain.lib, when compiling I get an undefined symbol
#error (winmain at 16)
#What do I have to do?#