Newbie - Setting up SDL

I have been having many troubles trying to get SDL to work under Windows. I
don’t want to use MSVC or anything big like that - I just want to use GCC
with a very simple IDE called JFE.

Anyways, I want to know how to compile and link things up properly. The SDL
docs only cover using SDL with MSVC. So what compiler options do I use with
GCC and what SDL files do I have to link up?

All that JFE gives me as far as options, is just whatever compiler options I
want to add. There’s no extra “Multi-Threaded” stuff to screw with like in
MSVC. Also, I don’t understand how to choose between doing a windows
application, or a console, or C/C++ - as you’ve likely figured out by now, I
don’t know much about what I’m talking about…

So could someone please help me out here - When SDL tries to link up, it
says some junk about WinMain at 16.

Any links or comments (besides ‘you suck’) would be greatly appreciated -
trying to setup SDL is becoming rather depressing - I just want to
program…

So could someone please help me out here - When SDL tries to link up, it
says some junk about WinMain at 16.

Are you linking with SDLmain.lib?
Try adding the file src/main/win32/SDL_main.c to your application project.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software