Winmain@16

Hello folks,

I’ ve manage to use SDL and compile GFX tutorials.

I was under Win2k and using DEVC++.

But DEVC++ has not pleased me, so when I saw that it was using
gcc/mingw, I download mingw+msys to compile, while using VIM to edit my
progs.

I’ve manage to build SDL using the .sh scripts, but when I try to
compile with gcc (a simple main.cc, first GFX tutorial), I get an error
with winmain at 16.

I remember having such an error with DEVC++ before proper installation,
but I don’t remember how I had come around it.

I’m sure its a very small error (bad/misplaced lib, or a forgotten
option) but can anyone help me ?

It’s important because a friend of mine is searching some joystick
primitives for a blind-helper application. He has the same problem
(under DEVC++). He is about switching to DirectX/Visual Studio. (I don’t
know if it will work better :wink:

Thanks in advance,
Yves-Emmanuel,
FRANCE.

Note :
I have my SDL.dll in system32, and my friend too.
We have provided the usual options -lSDL -lSDLmain -lmingw32 for DEVC++,
a little more complicated for me with mingw/msys.
Just ask if you want additional details.

Note 2 :
While trying to make SDL/mingw+msys working, i’ve begin to write down
how I proceed in order to make a tutorial (in French). So if I come
around my problems, I will provide a tutorial that may spare you this
question in the future.

Note 3 :
I go in vacation on the July 27, until August 19. So respond quickly or
not at all (I will re-ask it when I will be back, no problem)______________________________________________________________________________
ifrance.com, l’email gratuit le plus complet de l’Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP…
http://www.ifrance.com/_reloc/email.emailif

Im Dev-C++, under Project then Project Options make sure this is typed…
-lmingw32 -lSDLmain -lSDL
for linker options. If you get it the wrong way round you sometimes get
that error.

Regards,

Si.

At 12:31 25/07/02 GMT, you wrote:>Hello folks,

I’ ve manage to use SDL and compile GFX tutorials.

I was under Win2k and using DEVC++.

But DEVC++ has not pleased me, so when I saw that it was using
gcc/mingw, I download mingw+msys to compile, while using VIM to edit my
progs.

I’ve manage to build SDL using the .sh scripts, but when I try to
compile with gcc (a simple main.cc, first GFX tutorial), I get an error
with winmain at 16.

I remember having such an error with DEVC++ before proper installation,
but I don’t remember how I had come around it.

I’m sure its a very small error (bad/misplaced lib, or a forgotten
option) but can anyone help me ?

It’s important because a friend of mine is searching some joystick
primitives for a blind-helper application. He has the same problem
(under DEVC++). He is about switching to DirectX/Visual Studio. (I don’t
know if it will work better :wink:

Thanks in advance,
Yves-Emmanuel,
FRANCE.

Note :
I have my SDL.dll in system32, and my friend too.
We have provided the usual options -lSDL -lSDLmain -lmingw32 for DEVC++,
a little more complicated for me with mingw/msys.
Just ask if you want additional details.

Note 2 :
While trying to make SDL/mingw+msys working, i’ve begin to write down
how I proceed in order to make a tutorial (in French). So if I come
around my problems, I will provide a tutorial that may spare you this
question in the future.

Note 3 :
I go in vacation on the July 27, until August 19. So respond quickly or
not at all (I will re-ask it when I will be back, no problem)



ifrance.com, l’email gratuit le plus complet de l’Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP…
http://www.ifrance.com/_reloc/email.emailif


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl