[Bug pch/13676] New: GCC failes to recognize files ending in .hpp as headers to be precompiled
jbrandmeyer at earthlink dot net
gcc-bugzilla@gcc.gnu.org
Wed Jan 14 03:18:00 GMT 2004
Pass any header file with a suffix ending in .hpp to the compiler. If -c is
specified, you recieve the message that "linker input file foo.hpp ignored
because linking not done", and if -c is not specified, it is passed on verbatim
to the linker which cannot subsequently determine the file type.
I think the most robust fix for this is to supply an argument to the -x flag
such as "c++-pch" or "c-pch" to force the compiler to treat it as a header file
to be pre-compiled. This would also enable projects that do more exotic things
with #include to take advantage of PCH.
--
Summary: GCC failes to recognize files ending in .hpp as headers
to be precompiled
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jbrandmeyer at earthlink dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13676
More information about the Gcc-bugs
mailing list