public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/4344: Problem with headers with g++
@ 2001-09-18  5:16 jean.brefort
  0 siblings, 0 replies; only message in thread
From: jean.brefort @ 2001-09-18  5:16 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]

>Number:         4344
>Category:       c++
>Synopsis:       Problem with headers with g++
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 18 05:15:59 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     gcc
>Release:        3.0 (and 3.0.1)
>Organization:
>Environment:
Linux-2.4.9, glibc-2.2.1, gcc-3.0 (installed with
--prefix=/usr), fr_FR locale
>Description:
-I/usr/include can pause some problems with some headers
and g++.
Becouse of that I had problems to compile mozilla with
gcc-3.0 (and 3.0.1)
>How-To-Repeat:
When compiling the one line file test.cc:

#include <fstream>

with g++:
g++ -I/usr/include -c test.cc

I get many errors, the first and main one being:

In file included from /usr/include/g++-v3/cstdio:31,
                 from /usr/include/g++-v3/i686-pc-linux-gnu/bits/c++io.h:35,
                 from /usr/include/g++-v3/bits/fpos.h:39,
                 from /usr/include/g++-v3/bits/std_iosfwd.h:41,
                 from /usr/include/g++-v3/bits/std_ios.h:39,
                 from /usr/include/g++-v3/bits/std_istream.h:39,
                 from /usr/include/g++-v3/bits/std_fstream.h:39,
                 from /usr/include/g++-v3/fstream:31,
                 from test.cc:1:
/usr/include/g++-v3/bits/std_cstdio.h:41:24: stdio.h: Aucun fichier ou répertoire de ce type

Note that there is no problem with the following command
lines work: without any error reported
gcc -I/usr/include -c test.cc
g++ -c test.cc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-18  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-18  5:16 c++/4344: Problem with headers with g++ jean.brefort

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).