Bug 452264 - Invalid project path after setting up default MSVC project. Potential solution included.
Summary: Invalid project path after setting up default MSVC project. Potential solutio...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: Next   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-19 08:20 EST by Shane Cook CLA
Modified: 2020-09-04 15:23 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shane Cook CLA 2014-11-19 08:20:12 EST
-- Configuration Details --
Product: Eclipse 4.4.1.20140925-1820 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 4.4.0.v20140925-0400

Setting up a default project with the C++ compiler target as Microsoft Visual C++ results in a project which generates a warning. The issue appears to be the include path specification. This set by default to 

C:\Program Files (x86)\Windows Kits\8.0\Include;C:\Program Files (x86)\Windows Kits\8.0\Include\gl;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Include

The error shown is
Description	Resource	Path	Location	Type
Invalid project path: Include path not found (C:\Program Files (x86)\Windows Kits\8.0\Include\gl).	ASampleTestMSVC		pathentry	Path Entry Problem

When inspecting the 'C:\Program Files (x86)\Windows Kits\8.0\Include\gl' path I find the 'gl' sub-directory is under a 'um' directory. Thus the correct path appears to be

C:\Program Files (x86)\Windows Kits\8.0\Include;C:\Program Files (x86)\Windows Kits\8.0\Include\um\gl;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Include

However, modifying the path does not make this issue go away. With the modified path, that no longer references 'C:\Program Files (x86)\Windows Kits\8.0\Include\gl' but 'C:\Program Files (x86)\Windows Kits\8.0\Include\um\gl' it still complains about not being able to find 'C:\Program Files (x86)\Windows Kits\8.0\Include\gl'.
Comment 1 Shane Cook CLA 2014-11-19 08:21:19 EST
Forgot to add I'm using Microsoft Visual Studio Professional 2013.
Comment 2 Shane Cook CLA 2014-11-19 08:39:46 EST
Further investigation reveals, whilst I changed the environment variable in the project for the C++ include path, the erroneous path actually comes from the project explorer. I can see under the list of includes the faulty directory specification. However, the 'delete' option is grayed out. It's not clear to me how I delete the offending include specifier, having now corrected the C++ build environment.

BTW, it doesn't seem this line is necessary in the list of includes, because you include the parent directory in the line above in the project explorer view.
Comment 3 Holn Kpnv CLA 2014-11-19 15:36:08 EST
Using Visual Studio 2013 the default include path would be
"Microsoft Visual Studio 12.0\VC\Include"
And probably also "Windows Kits\8.1\Include"

However I have the same problem.
Mine is slightly different because by default I have only
the "Windows Kits\8.0\Include" and the usual wrong path "Kits\8.0\Include\gl"

I need to add the "Microsoft Visual Studio 12.0\VC\Include" by hand in every project, because there's no way to make that as default
Comment 4 Holn Kpnv CLA 2014-11-19 16:04:25 EST
(In reply to Holn Kpnv from comment #3)
> Using Visual Studio 2013 the default include path would be
> "Microsoft Visual Studio 12.0\VC\Include"
> And probably also "Windows Kits\8.1\Include"
> 
> However I have the same problem.
> Mine is slightly different because by default I have only
> the "Windows Kits\8.0\Include" and the usual wrong path "Kits\8.0\Include\gl"
> 
> I need to add the "Microsoft Visual Studio 12.0\VC\Include" by hand in every
> project, because there's no way to make that as default



And yes, a working button to delete those wrong defaults would be highly appreciated