Every time I include the library I get the same error:
fatal error C1083: Cannot open include file: 'sdl': No such file or directory
Nothing seems to be wrong with the download and I didn't run into any problems following the instructions; until I try to build something small that includes the library.
I felt like I should include a sample of a failed build just to be complete:
#include <iostream>
#include <sdl>
using namespace std;
int main ()
{
cout << "Hello!";
return 0;
}
I know the program doesn't actually have anything from sdl in it but I figured if it built correctly, then sdl was working.
I'm using Visual C++ 2008 Express edition on windows xp pro.
Thank you!
Are you sure you went and put the library into the place where it looks for them by default? Then make sure you have it included in the "additional library dependencies" box.
I did not put it in a place where it looks by default. The directions I followed said to place them anywhere (which I was admittedly surprised at) but then later had me go:
tools>options>projects and solutions>Vc++ directories
then using the "show directories for" drop down menu add the folder location to both the include option and the library files option.
I also did go to the additional library dependencies and add sdl.lib there. Maybe it needs some special formatting? I just typed in "sdl.lib" without quotes into the bar.
I tried one more thing now as well:
project>add existing item
then I found the sdl.lib file and selected it. It was added it to the source files folder along with my test.cpp
Also failed, same exact message.
Also to be honest I'm not sure where it would look for libraries by default. I'll try to find it and experiment with placing sdl there.