简体   繁体   中英

SDL2.DLL missing

I'm following this tutorial to setup the SDL template but when I try and run the program I get the following error.

I have gone over the tutorial several times but cannot see what mistake I am making.

I copied the SDL2.DLL into the Release Directory and then ran it and I got a different error.

but I imagine that I shouldn't have to do this?

Anyone see what mistake I could be making?

I am using windows 8 + MS Visual Studio 2012

There are two different versions of SDL2.DLL, one is x86 and another is x64. A common mistake is to use the x64 one when in fact you are compiling your code as x86. Try both of them to make sure you aren't making that mistake.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM