Results 1 to 3 of 3

Thread: Installing the SDL in Visual C + +

  1. #1
    Join Date
    Dec 2008
    Posts
    112

    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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.

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    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.

Similar Threads

  1. Tips for installing image library in visual studio 2010
    By Orion lella in forum Tips & Tweaks
    Replies: 3
    Last Post: 24-01-2010, 05:58 AM
  2. Vista 64 problem installing Visual Studio 2005
    By Kiran123 in forum Software Development
    Replies: 5
    Last Post: 19-05-2009, 09:43 PM
  3. Error Code 1330 while installing Visual Basic 2008
    By Capers in forum Windows Software
    Replies: 2
    Last Post: 02-05-2009, 07:11 PM
  4. Problem installing Microsoft Visual C++ 2005
    By Wfeg in forum Vista Help
    Replies: 9
    Last Post: 11-09-2008, 06:44 PM
  5. Problem Installing Visual Studio 2005 Service Pack 1
    By Ringo in forum Small Business Server
    Replies: 1
    Last Post: 13-02-2007, 04:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,295,405.17009 seconds with 17 queries