[DevC++ SDL1.1.6] : linker error winmain16

i correctly set the linker options with -lSDL
but i got this linker error :
D:\PROGRA~1\DEV-C_~1\LIB\libmingw32.a(main.o)(.text+0x8e): undefined
reference to `WinMain at 16’

i have the 2 libs : libSDL.a and libSDLmain.a in the devC++ lib path
in the water.c, i try the 2 mains : winmain and the standard main but kifkif
(the same) problem.

i want to compil my water test project just with the DevC++ IDE without the
makefile.

can someone help me ?

i correctly set the linker options with -lSDL
but i got this linker error :
D:\PROGRA~1\DEV-C_~1\LIB\libmingw32.a(main.o)(.text+0x8e): undefined
reference to `WinMain at 16’

i have the 2 libs : libSDL.a and libSDLmain.a in the devC++ lib path
in the water.c, i try the 2 mains : winmain and the standard main but kifkif
(the same) problem.

You need to link with the output of sdl-config --libs
This is usually:
-lmingw32 -lSDLmain -lSDL -mwindow

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