any help here would be appreciated. Ive really racked my brains at this, sooo.
I have installed cygwin, and Netbeans and have been successfully deving, compiling and running a small SDL-1.2 windows game with no problems.
The problem has come now that I have installed SDL2 and am trying to compile. Specifically the linking.
Im doing the same as before, adding "libSDL2.a" and "libSDL2main.a" to the linker options for my project in Netbeans; but im getting the "undefined reference to `WinMain'" error
Now, ive looked into this and it seems that the linker cannot link my main() function to the WinMain one.
Also one answer ive seen is to add "-lmingw32 -lSDLmain -lSDL" to the linker options BUT I dont use mingw, im using cygwin, whats the cygwin equivalent of mingw32.lib
I guess the main question is: What are the options I give the linker if im using Cygwin, SDL2 and Netbeans?
any help would be greatly appreciated.