Problems with MinGW (HELP)

i’m trying to compile an SDL application with MinGW and it’s not working.

this is the command: g++ main.c -o main -Ic:\sdl\include -Lc:\sdl\lib -lSDL -lSDLMain

and this is the error: unefined reference to alloca_probe

i’m downloading the msys. but im not sure if that the solutions, i think i’m missimg a lib or something.
the cygwin has the some problems?
please anybody help

David Roguin wrote:

i’m trying to compile an SDL application with MinGW and it’s not working.

this is the command: g++ main.c -o main -Ic:\sdl\include -Lc:\sdl\lib
-lSDL -lSDLMain

and this is the error: unefined reference to alloca_probe

i’m downloading the msys. but im not sure if that the solutions, i
think i’m missimg a lib or something.
the cygwin has the some problems?
please anybody help

you need to make .a files from the sdl dlls I think.

I compiled sdl from source with mingw + msys and it seems to work ok(all
the tests I tried worked).

Or maybe your -I -L lines are wrong. Perhaps try -I/c/sdl/include
-L/c/sdl/lib

gluck!