Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348174 - wrong paths when using workspace-relative include paths with Cygwin toolchain
Summary: wrong paths when using workspace-relative include paths with Cygwin toolchain
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   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: 275779
  Show dependency tree
 
Reported: 2011-06-03 04:35 EDT by disposable_yp CLA
Modified: 2020-09-04 15:27 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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