dependency generation incorrect with precompiled headers

Robert Swan rswan@signetic.ca
Fri Jul 20 22:09:00 GMT 2007


Hello;

I can't get dependencies generated with g++ -MD to come out correctly
when precompiled headers are used. I've attached an example which
generates main.d while compiling main.cpp. main.cpp includes
include/bink.h. When the include path contains the precompiled
bink.h.gch (only), main.d does not contain any dependency on
bink.h.gch.

When the compiler includes bink.h, main.d includes the dependency.

I get the same behavior with version 3.4.6 and 4.1.2

Am I doing something wrong?

Thanks for any help,
Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gch_bug.tgz
Type: application/x-gzip
Size: 513 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20070720/40f1f99e/attachment.bin>


More information about the Gcc-help mailing list