Project converted from VS.NET 2k3 to VS2k5. Receive the following error in several projects (6/21) that build fine in VS2k3. The include file exists, is part of the project (auto generated by VS2k3). Anyone see this Thanks.
VS2005 does not seem to see some of the include files even if they appear under "header files" in the project tree view. You will resolve it if you specify the full path to the include file name: #include "C:\project files\Microsoft visual studio 8\VC\Include\resource.h" or whatever or another path.
What is your compilation command prompt (from the build log). What you can do is use the /I<relative path you desire> to add any directory to you include settings.
I do believe it is a bug. There are also other bugs on the C++ side of IDE that i have discovered after working with it just for 2 weeks. What I did for the #include nuisance was to collect all header files from all directories in my computer into one C:\include directory and referring everything to it, I mean using it as an absolute path. The oddest thing is that only selective header files need it, others are located very easily.
Is this a known bug An absolute path will cause major headaches since we are using ClearCase for change management. If you're unfamiliar with this tool, the drive letter changes very freqeuently so the ability to do relative paths is a MUST.
C1083: Cannot open include file: 'resource.h'
dwitt
Or dump all .h files into one flat directory if you're desperate :)
Regards,
--PA
Mark Hansen
Pablo_IN_NZ
bluewolf
For help on using the /I compiler option, please see http://msdn2.microsoft.com/en-us/library/73f9s62w.aspx
Hope this helps!
Thanks,
Ayman Shoukry
VC++ Team
dnnguru
Did a complete CLEAN of the project and deleted all temporary and tool generated files. Then did a Rebuild.
This seemed to fix the issue.
RyHarris
Thanks,
Ayman Shoukry
VC++ Team
Jay T103328
D Danial
Vikas62
Thanks,
Ayman Shoukry
VC++ Team
Derek.Zhang