----- Original Message -----
From: "Psymaster ???????" <ro...@ho...>
To: <dev...@li...>
Sent: Sunday, June 08, 2003 10:49 PM
Subject: [Dev-C++] Help running SDL under dev-c++
> Could you please help me? I have tried dev-c++ packages and it always
gives
> an error about "winmain@16" or "SDL_init" something. I think I'm doing
> everything right, I've added the compiler command-line options, and
sdl.dll
> in /system32 but no go.
>
Hi,
You get the error because SDL defines its own program entry point, so you
can't use WinMain.
In the Project Option, Parameters, C Compiler, you should enter this define:
-Dmain=SDL_main
In the Project Option, Parameters, Linker, you should enter something like
this:
-lmingw32 -lSDLmain -lSDL -mwindows
-s
My include directory and lib directory are:
D:\SDL125\i386-mingw32msvc\include\SDL
D:\SDL125\i386-mingw32msvc\lib
I have compiled and linked two test examples: testwin and testalpha from the
SDL 1.2.5 distribution.
The two projects are built using Dev-C++ 4.9.8.0 (GCC 3.2).
If you like, I could zip the project files and e-mail them to you.
Best Regards,
Yeoh
~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~
ICT eBooks by Yeoh HS
Free Downloads at http://www.yeohhs.com
~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~
|