Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-10-2009
Member
 
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.
Reply With Quote
  #2  
Old 30-10-2009
Member
 
Join Date: May 2008
Posts: 2,293
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.
Reply With Quote
  #3  
Old 30-10-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 01:56 AM.