Menu

I need SDL help

2002-11-24
2012-09-26
  • Nobody/Anonymous

    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^^

     
    • Nobody/Anonymous

      rename your main function... to SDL_main... or whatever it is asking for...

      Zero Valintine

       
    • Neow

      Neow - 2002-11-25

      Do you include the SDL's lib files ?

      xam

       
    • Nobody/Anonymous

      no I have it, i have do make a space after main
      really, no joke!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.