I have been on this issue for a couple of hours! Searched a lot in google to no avail. Please help! I am running Windows Vista. DEV C++ 4.9.9.2 version.
Thanks Duoas. The link that you provided me with helped me get rid of the "cannot find -lSDLmain" error. Unfortunately now its showing another error which has equally stumped me.
It reads
1 2 3
[Linker error] undefined reference to `WinMain@16'
ld returned 1 exit status
C:\blahblah\Makefile.win [Build Error] [pacman.exe] Error 1
Once again thank you for your timely response. :) I hope you can help me out on this one.
Yes, SDL applications require you to declare main() exactly as R0mai indicated.
That's because SDL wants to initialize itself and does so by declaring main() elsewhere in the application, and #defining "main" to a new name that SDL's main() calls...
(I personally think this is a terrible way to initialize, but that makes no difference...)