Community
Participate
Working Groups
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.