This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/13676] New: GCC failes to recognize files ending in .hpp as headers to be precompiled
- From: "jbrandmeyer at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2004 03:18:19 -0000
- Subject: [Bug pch/13676] New: GCC failes to recognize files ending in .hpp as headers to be precompiled
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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