Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348174

Summary: wrong paths when using workspace-relative include paths with Cygwin toolchain
Product: [Tools] CDT Reporter: disposable_yp
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif, zosrothko
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 275779    

Description disposable_yp CLA 2011-06-03 04:35:45 EDT
Build Identifier: 20110218-0911

Cygwin paths must always be with slashes instead of backslashes. When I add a workspace-relative path to includes list in project properties, it appears in a "mixed" mode that the cygwin toolchain does not interpret:
"C:\workspace/project/src". There is a workaround to add the absolute path to the include list, but then the project will become broken if moved.

Reproducible: Always

Steps to Reproduce:
1. Create a new C++ project with Cygwin toolchain
2. Open Properties->C/C++ General->Paths and Symbols->Includes
3. Add a path with "Is workspace path" checked
4. Use an #include "something" that is in this include path
5. Build the project and get the bad makefile