Hi i have written a SDL-prog and i am getting the message:
[Linker error] undefined reference to `SDL_main'
My Main func:
int main(int argc, char *argv[])
And i have Linked to:
-lmingw32 -lSDLmain -lSDL
And i have Inlcuded the SDL.h and SDL_main.h but i dont work. Why? I have the Dlls althought but it dont work. Why the hell not?
I am using the Dev.Cpp 4.9.6.9
PS: Sry for my bad Englisch, its not my motherlanguage^^
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi i have written a SDL-prog and i am getting the message:
[Linker error] undefined reference to `SDL_main'
My Main func:
int main(int argc, char *argv[])
And i have Linked to:
-lmingw32 -lSDLmain -lSDL
And i have Inlcuded the SDL.h and SDL_main.h but i dont work. Why? I have the Dlls althought but it dont work. Why the hell not?
I am using the Dev.Cpp 4.9.6.9
PS: Sry for my bad Englisch, its not my motherlanguage^^
rename your main function... to SDL_main... or whatever it is asking for...
Zero Valintine
Do you include the SDL's lib files ?
xam
no I have it, i have do make a space after main
really, no joke!