Compiling under Win32

Hello!

I can’t get my projects to compile with SDL involved.
I think I’m following the sparse information that there is… but to no
avail.

The error I’m getting is that exit() and a few others seem to be defined
somewhere else as well.
I don’t speak Visual Studio 6 fluently, so that could probably be part
of the problem.

Anyone know what to do to get it to compile properly?
(Or where help is available…)

For instance, the sdl manual says something about starting a win32
project, and then it discusses the main() method… but win32 projects
have winmain() as far as I know… win32 console projects have main()…

Are there ambiguities in the manual or what?

thanks in advance,
Henrik Nilsson

For instance, the sdl manual says something about starting a win32
project, and then it discusses the main() method… but win32 projects
have winmain() as far as I know… win32 console projects have main()…

Are there ambiguities in the manual or what?

No, SDL provides WinMain(), and you should use main() for your program.

Have you read through the FAQ?
http://www.libsdl.org/faq/FAQ-Win32.html

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