MrShoe
09-23-2002, 12:27 AM
sorry, but its late at night and i dont know why i am getting the following error when trying to compile an SDL app
[Linker error] undefined reference to `WinMain@16'
now, i have -lsdl in the compiler options, and i have included the sdl lib and all, got the dll's in the system dir, got all the libs in the library dir and all the headers in the righ place, i got now idea why it aint woerking...
more specifically:
Executing gcc.exe...
gcc.exe "C:\SDL-1.2.4\test\testoverlay.c" -o "C:\SDL-1.2.4\test\testoverlay.exe" -lsdl -s -I"C:\DEV-CPP\include" -L"C:\DEV-CPP\lib"
C:\DEV-CPP\lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined reference to `WinMain@16'
Execution terminated
[This message has been edited by MrShoe (edited 09-23-2002).]
[Linker error] undefined reference to `WinMain@16'
now, i have -lsdl in the compiler options, and i have included the sdl lib and all, got the dll's in the system dir, got all the libs in the library dir and all the headers in the righ place, i got now idea why it aint woerking...
more specifically:
Executing gcc.exe...
gcc.exe "C:\SDL-1.2.4\test\testoverlay.c" -o "C:\SDL-1.2.4\test\testoverlay.exe" -lsdl -s -I"C:\DEV-CPP\include" -L"C:\DEV-CPP\lib"
C:\DEV-CPP\lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined reference to `WinMain@16'
Execution terminated
[This message has been edited by MrShoe (edited 09-23-2002).]