public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/13676] New: GCC failes to recognize files ending in .hpp as headers to be precompiled
@ 2004-01-14  3:18 jbrandmeyer at earthlink dot net
  2004-01-14  3:32 ` [Bug pch/13676] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: jbrandmeyer at earthlink dot net @ 2004-01-14  3:18 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2007-08-06 21:44 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-13676-6060@http.gcc.gnu.org/bugzilla/>
2005-12-09  3:05 ` [Bug pch/13676] GCC failes to recognize files ending in .hpp as headers to be precompiled pinskia at gcc dot gnu dot org
2006-01-12  0:11 ` pluto at agmk dot net
2006-03-22  1:38 ` pluto at agmk dot net
2006-05-18  1:09 ` geoffk at gcc dot gnu dot org
2006-08-31 20:22 ` pluto at agmk dot net
2006-09-25 21:22 ` pinskia at gcc dot gnu dot org
2006-09-26 18:08 ` alfred dot minarik dot 1 at aon dot at
2006-12-28  1:38 ` tromey at gcc dot gnu dot org
2006-12-30 15:35 ` alfred dot minarik dot 1 at aon dot at
2007-01-02 20:14 ` pluto at agmk dot net
2007-01-03 19:17 ` tromey at gcc dot gnu dot org
2007-02-03 19:44 ` tromey at gcc dot gnu dot org
2007-02-03 19:45 ` tromey at gcc dot gnu dot org
2007-02-04 17:24 ` alfred dot minarik dot 1 at aon dot at
2007-08-06 11:10 ` gerald at gcc dot gnu dot org
2007-08-06 21:44 ` pinskia at gcc dot gnu dot org
2004-01-14  3:18 [Bug pch/13676] New: " jbrandmeyer at earthlink dot net
2004-01-14  3:32 ` [Bug pch/13676] " pinskia at gcc dot gnu dot org
2004-01-14  5:41 ` pinskia at gcc dot gnu dot org
2004-05-27  5:49 ` pinskia at gcc dot gnu dot org
2005-07-21  0:46 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).