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

Bug 341389

Summary: C/C++ General > Paths & Symbols > Include Files > Add... not working
Product: [Tools] CDT Reporter: Jonathan Watt <jwatt>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif
Version: 7.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Jonathan Watt CLA 2011-03-30 12:00:28 EDT
I believe that adding a header file using |C/C++ General > Paths & Symbols > Include Files > Add...| should create a preinclude file that will be included for all source files. This does not seem to happen though. I added the header with both "Add to all configurations" and "Add to all languages" ticked, and I tried both using a file system path and using a workspace path. Neither worked.

When I say "not working", I mean that the ifdef'ed code in the source files that depends on the defines in the preinclude file remains greyed out in the editor. Also I used "Create Parser Log File" from the "Index" item in the context menu for one of the source files in Project Explorer, and the section "Preincluded files (option -include):" in the log file is empty.