Xp, mingw, disable stdout redirect

Hi list,

I’m trying to write a console application under cygwin, win xp, and mingw.
This application connects to an instrument and while collecting data, I
want to draw them onto a canvas.

I search google and tried several hints like collected on
http://sdl.beuc.net/sdl.wiki/FAQ_Console. None helped yet.

So what I’de like to with the SDL library:

  • configure SDL with “–disable-stdio-redirect”

  • building it

  • after that I found libSDLmain.a; but not libSDL.a

  • also I’m missing SDL.dll

Also, am I’m doing right when compiling like this - library SDL is found
in folder ./SDL/ here - (?):
mingw32-gcc -I ./SDL/include/ -L ./SDL/lib/ -o sdltest.exe sdltest.c
-lmingw32 -mconsole -lSDLmain -lSDL

So how to proceed?

Thanks in advance.
Ronny

After ‘./configure --disable-stdio-redirect’ I found
in /build/
libSDLmain.a
libSDL.la
SDL.lo
SDL.o

in /build/.libs/
SDL.dll

For compiling and executing my SDL-programs I need libSDLmain.a,
libSDL.a and SDL.dll.
So my lack of knowledge is how to build libSDL.a?

Ronny Obstei schrieb:> Hi list,

I’m trying to write a console application under cygwin, win xp, and
mingw.
This application connects to an instrument and while collecting data,
I want to draw them onto a canvas.

I search google and tried several hints like collected on
http://sdl.beuc.net/sdl.wiki/FAQ_Console. None helped yet.

So what I’de like to with the SDL library:

  • configure SDL with “–disable-stdio-redirect”

  • building it

  • after that I found libSDLmain.a; but not libSDL.a

  • also I’m missing SDL.dll

Also, am I’m doing right when compiling like this - library SDL is
found in folder ./SDL/ here - (?):
mingw32-gcc -I ./SDL/include/ -L ./SDL/lib/ -o sdltest.exe sdltest.c
-lmingw32 -mconsole -lSDLmain -lSDL

So how to proceed?

Thanks in advance.
Ronny