Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
on my way to compile some project, which is from sf.net,
Visual Studio 2008 says cannot open the include file: 'SDL/SDL.h': no such file or directory
but as you may know, there shouldn't be character '/' in file name.

I download SDL Development Libraries for VC8 and unzip and copy include files to VC include folder, same as lib files
but it still didnt work.
could somebody let me know what I have to do next?
Posted

If you have a
#include "SDL/SDL.h"

directive in the source files then you should replace it with the appropriate one (on Windows it is probably "SDL\SDL.h", since '\' it is the separator in paths).
:)
 
Share this answer
 
Note that Visual C++ is able to deal with POSIX filenames (it automatically replace / with \ when used in #include directives); I tried on my system, and in #include directives you could use both \ and / as path separators.
I think the problem you are experiencing is due to the fact that Visual C++ is not able to locate the folder SDL; from the Tools menu select Options then move to VC++ Directories and add the folder that contains SDL to the Include path. For instance if the file you are including is C:\My_Path\SDL\SDL.H add the path C:\My_Path to the Include paths, then the directive #incude "SDL/SDL.H" should work properly.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900