Debugging load time error in C++ SDL2 program compiled with VS2015 on Win10

前端 未结 3 2052
无人共我
无人共我 2021-01-11 22:13

I\'m writing a project in C++ with SDL2 on 64-bit Windows 10 using Visual Studio 2015. I recently purchased a new Windows 10 laptop and cloned my project from github. My pro

3条回答
  •  失恋的感觉
    2021-01-11 22:55

    I feel profoundly dumb, but I finally figured out the real problem. I'm using the SDL font library SDL2_ttf, and I simply hadn't copied zlib.dll from the SDL2_ttf lib directory into my build directory. I don't understand why the error message was so cryptic; in the past missing DLLs have given me a helpful "foo.dll is missing" error message.

    Anyway, thank you all for your help. At least I've learned a useful lesson: always make sure all the required DLLs are present before suspecting a more complex problem.

提交回复
热议问题