Installing the SDL in Visual C + +
I try to install the SDL :
Code:
# include <stdlib.h>
# include <stdio.h>
# include <SDL/SDL.h>
int main (int argc, char * argv [])
(
system ( "PAUSE");
return 0;
)
I get the following error:
c: \ documents and settings \ my documents \ visual studio 2008 \ projects \ testsdl \ testsdl \ main.c (3): fatal error C1083: Can not open include file: 'SDL / SDL.h': No such file or directory.
Re: Installing the SDL in Visual C + +
Go to the package manager inside Dev-C++ and install it from there, Add sdl\include to VC's include directories and Add sdl\lib to VC's lib directories.
Re: Installing the SDL in Visual C + +
The first thing you must do is add the directory with the SDL header files to your include path in your IDE.When you compile something the compiler looks up header files in several directories, some hardcoded and build in, and typically some given as arguments to the compiler (like for instance "gcc -I/usr/local/include ..."). One guess is that you are missing this.