adding a library

Hello. I've been trying to add the SDL library but I cannot get Visual C++ 2008 Express edition to find it.

I've tried to carefully follow directions from
http://www.meandmark.com/sdlvisualc.pdf
and
http://gpwiki.org/index.php/C:How_to_set_up_your_SDL_Build_Environment#Windows:_MSVC.2B.2B_.NET

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.
Ok, so what I have done to get some libraries to work is this:

Project Properties->Config->Linker->General->Additional Library dependencies and I added the directory it was in

Then I went to Input and added it in "Additional dependencies" (no quotes or anything special)
it's

#include "SDL.h"

not

#include <SDL>
Topic archived. No new replies allowed.