...because the option -I-
is now obsolete, and is appended automatically when precompiling headers: ||note: obsolete option -I- used, please use -iquote instead|
It continues to attempt to compile, but fails to find all files not explicitly given an include path. For instance, attempting to build precompiled headers including locale_conv.h produces fatal error: stringfwd.h: No such file or directory|
Hi, Riot, can you tell us what is the steps to reproduce this bug? Also, please mention which version of compiler do you use, thanks.
Hi Olly, the compiler I'm using is g++ (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 5.1.0 on windows, but I believe this would happen with any version of gcc after 5.0 and on any platform.
I've just realised this is probably the same issue as http://forums.codeblocks.org/index.php?topic=5614.0 - it seems I previously changed the setting for where the precompiled header should be generated.
Steps to reproduce:
1. Use any GCC since 5.0
2. Select any header in the project, right-click, enable options->compile
3. Change project options -> generate PCH in object output dir
4. Attempt to compile the project
4. Receive error:
obsolete option -I- used, please use -iquote instead|
Followup: the problem with the setting of having the .gch file alongside the header is that it does not support multiple targets. On our system we have a variety of targets with different compiler settings, and without being able to store the PCH in the per-target object directory, one compiled for one target clashes with the others.
Can you post a minimal project that can be used to reproduce the problem?