Problem trying to install SDL.

I've followed all of the steps on this tutorial

http://twinklebeardev.blogspot.com/2012/07/setting-up-sdl-in-visual-studio.html

but when I run the test code, I get the error "error LNK1104: cannot open file 'SDL.lib'.

The only problem that I can think of is that when the tutorial says "Before you can run this code you will need to put the Dynamic-Linked Library SDL.dll, found in the bin folder of your SDL directory, into the same folder as the executable." I can't find the bin folder or the SDL.dll, but I took a file under lib called SDL2.dll and placed that into the folder with my executable.

Note: I've redid the steps a few times, so I'm pretty sure I followed the directions right.

Thanks!
closed account (NUj6URfi)
Try using the tutorial at lazyfoo.net. What compiler are you using? I have sweatted through a ton of sdl errors. Follow lazyfoo and you should be good. If you are using dev-c++ and have an issue just pm me.
closed account (N36fSL3A)
If you're using MinGW use these compiler options

g++ main -o -example.exe -lmingw32 -lSDLmain -lSDL
You are right toad1359 the best tutorial to install SDL
here for Visual Studio.NET 2010 Express
http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet2010e/index.php
closed account (N36fSL3A)
Reply why don't you? :(
The lazyfoo tutorial worked. Thanks for your help and replies :D! btw, I was using Microsoft Visual Studio Express for Desktop 2012
Last edited on
Topic archived. No new replies allowed.