c++/4344: Problem with headers with g++
jean.brefort@ac-dijon.fr
jean.brefort@ac-dijon.fr
Tue Sep 18 05:17:00 GMT 2001
>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:
More information about the Gcc-bugs
mailing list