Menu

Cannot Link SDL File

2008-03-16
2012-09-26
  • Matt Powers

    Matt Powers - 2008-03-16

    O.K, I'm trying to put the SDL into my project. I've downloaded the SDL, I try linking it and the compiler can't find it. I've tried saving it (SDL) into every possible directory/sub directory and nothing. This is the (ever so 'king helpful) error message I get:

    cannot find -lSDL.lib
    ld returned 1 exit status
    C:\sa\SDL-1.2.8\lib\Makefile.win [Build Error] [Project1.exe] Error 1

    If anyone can help, or knows where I can download a pre-installed SDL Dev template project or knows where I'm going wrong, I'll be forever in your debt (maybe not forever). I've gone through around 3-4 step by step tutorials and get the same result.

    Thanks

    Matt

     
    • Martin

      Martin - 2008-03-25

      Hello Matt,

      I had the same right now with U++ and did it there with some effort. U++ also "sitting" at the MingW, so it cannot be that different to get it on with Dev too.

      First you should copy the SDL.dll to "C:/winnt/system32/". If that alone doesnt perform it, see my questions here, especially the screenshot of "mrjt" (and ignore the tips of "masu"):
      http://www.ultimatepp.org/forum/index.php?t=msg&goto=14842&#msg_14842

      I have ned that to get the SDL-sample running U++ has included (...). Hope that helps.

      kind greets
      Martin

       
    • Matt Powers

      Matt Powers - 2008-03-16

      My Dev version is 4.9.9.2 and my O.S is vista

       

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.