Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find #include "SDL.h"

I have been compiling a code given by Lazy Foo tutorials n after building up, its showing:-

Fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory

What should I do next? I have followed the procedure given by the tutorials and I don't think I have missed anything.

like image 620
Payo Avatar asked May 31 '12 09:05

Payo


2 Answers

Go to http://www.libsdl.org/download-1.2.php and scroll down to "Development Libraries". Get the one needed by you, in this case, you need SDL for Windows i suppose? and place it in your lib of Visual Studio.

like image 174
Prem Paryani Avatar answered Oct 18 '22 09:10

Prem Paryani


Old thread, but for those who continue to run into this; when you're setting the VC++ Directories, I'm betting the Configuration dropdown at the top of the window was set to "Debug" (That's what happened to me). Change it to "Release" and then add the paths again...

like image 6
Andrew Tofelt Avatar answered Oct 18 '22 08:10

Andrew Tofelt