Sign in to follow this  
Valeo25

error C1083: Cannot open include file: but it really is included

Recommended Posts

Valeo25    122
I've just converted a Visual Studio 2003 solution to a 2005 solution. The previous compiles no problem. When I try to compile the 2005 version, it gives me a cannot open include file error. I've made sure that the additional include directories are correct. I even copied directory string out of the additional include directories field, adding the #include and header name like so, #include "C:/Program Files/Microsoft DirectX SDK (March 2008)/Include/d3d9.h" That seemed to work, so why doesn't it work with just the angle brackets? Once I put it in "", it moved on to the next header file and complained it couldn't find that one. I can even right click on the header file name in the angle brackets and Open Document no problems. Is this just a bug with VS 2005?

Share this post


Link to post
Share on other sites
iMalc    2466
Your project simply doesn't have the necessary directory added to the project's additional include directories.

Share this post


Link to post
Share on other sites
Valeo25    122
I copied the directory I had in the additional include directories directly to the #include in the header file, and it worked. If I right click on it and Open Document, it goes right to the header file. It shouldn't be able to do that if it can't find the file, unless I'm forgetting something.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this