Having trouble installing SDL

Sep 24, 2014 at 1:51pm
No matter how much I try, I can't install SDL for Visual Studio Microsoft C++ Express. Can someone please help out.
Sep 24, 2014 at 2:38pm
You need to give much more information then this for us to be able to help. Be as detailed as possible with what problems you ran into and it will help us help you figure out the problem you are having.

1. You say you can't install SDL, but what exactly is going wrong?
2. What step in the installation isn't going right? Is it linking SDL to a project, or building SDL from the source?
3. If you are getting any errors what exactly as they are shown on the screen are they (If they are to long post it in a pastebin and link to it).
4. What version of Visual Studio are you using?

If you could answer those questions we might be able to help you figure out what is going wrong.
Sep 24, 2014 at 2:46pm
http://www.cplusplus.com/forum/beginner/143210/#msg755653


Oops sorry forgot to tell you this.

1. I tried following lazyfoo's installation and when I try to build it shows up an error.
2. I'm pretty sure its linking and building from the source.
3. The errors just say C:/Desktop/C++/SDL/include is not a recoginisible batch command, executable.
4. 2010
Last edited on Sep 24, 2014 at 2:47pm
Sep 25, 2014 at 2:20am
Bump. Sorry but I really want to start on SDL
Sep 25, 2014 at 3:27am
He is probably having trouble setting up the lib folder and stuff like that...which I had the same problems...
Sep 25, 2014 at 4:33am
I think so novellof
Sep 25, 2014 at 4:39am
it shows up an error
You were asked what exactly is going wrong. "It shows an error" isn't what one would call "exact".
Sep 26, 2014 at 3:24am
No I said the error says
The errors just say C:/Desktop/C++/SDL/include is not a recoginisible batch command, executable.
Sep 26, 2014 at 5:15am
Guys he can't install the library its not that difficult to answer....

He needs to know where to drop the include folder the lib folder...set up the additional dependancies......

Thats all he needs...to be able to include the SDL into the project......
Sep 26, 2014 at 5:37am
The errors just say C:/Desktop/C++/SDL/include is not a recoginisible batch command, executable.
Sounds like you added the path as a pre- or post-build event.
Sep 29, 2014 at 2:19am
Sorry, went away for a couple of days, so from what I read I need to know how to be able to include the SDL into the project.
Sep 29, 2014 at 11:56am
Second bump.
Sep 29, 2014 at 1:23pm
In Project->Properties->Configuration->VC++ Directories
Add a path under Include Directories to the SDL Include\ folder.
Add a path under Library Directories to the SDL LIB\x64\ or LIB\x86\ folder.

In Project->Properties->Linker->Command Line
Add sdl.lib under Additional Options
-or-
Add #pragma comment(lib, "sdl.lib") in your source
Oct 15, 2014 at 8:16am
Hey ahcfan, sorry I haven't replied in a long time. I took a break from coding. Your steps were very easy, but it has an error saying

c1xx : fatal error C1083: Cannot open source file: 'sdl.lib': No such file or directory


PS: Sorry for the big bump everyone.
Last edited on Oct 15, 2014 at 8:18am
Topic archived. No new replies allowed.