The application was unable to start correctly (0xc000007b) error when working with SDL2 C++

情到浓时终转凉″ 提交于 2020-01-05 06:04:24

问题


Ok so here's the problem. Recently I got interested in C++ game programming and I was working with SDL2 libraries. Everything worked fine up until I wanted to load SDL2 Image libraries. The first problem I encountered was that the first setup I was working with x64 libraries but there were some issues with running the code so I changed it to x86. I changed the Linker -> Additional Library Directories from x64 to x86, Platform from x64 to All platforms as well as Executable Directories and Library Directories under VC++ Directories to x86 but the problem persisted as well as changing the debugger from x64 to x86. I tried running the dskchk, restarting the PC and reinstalling VS 2015 and the same thing is happening. Is there anything I'm missing?


回答1:


Your app uses x86 .lib files to build, but x64 .dlls when you are running it. Change all the .dlls to x86 versions.



来源:https://stackoverflow.com/questions/49559675/the-application-was-unable-to-start-correctly-0xc000007b-error-when-working-wi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!