Important: Please read the Qt Code of Conduct -

Trouble with SDL <SOLVED>

  • I'm trying to help a friend with a problem. When debugging the program I get the error "LNK1104: cannot open file 'SDL.dll.lib'

    From what I can tell everything is referencing the right file.

    RC_FILE = monterey.rc

    LIBS += -L../Monterey/depends/windows/
    LIBS += -lSDL.dll

  • FIXED!

    Since it could not find the SDL.dll.lib file I checked the depends/windows folder and there wasn't a lib file there. So I downloaded the Win32: (Visual C++) Development library and extracted it. Then I moved the SDLmain.lib, SDL.lib and SDL.dll files to the depends/windows folder. Then I renamed the SDL.lib to SDL.dll.lib. After that, it debugged and ran fine! :)

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Great you found out and shared ! Could you also update the thread's title to solved so other forum users may know a solution has been found :)

Log in to reply