This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc-2.97 20001228: error if including iostream after cstdio


I'm getting compiler errors on attempt to include iostream after cstdio

#include <cstdio>
#include <iostream>

The compiler output is following (if I swap include statements then no more 
errors):

Reading specs from 
/disk2/gcctest/bin/../lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with: ../gcc/configure --enable-shared --verbose --with-new-abi 
--enable-libstdcxx-v3 --enable-threads=posix : (reconfigured) 
gcc version 2.97 20001228 (experimental)
 /disk2/gcctest/bin/../lib/gcc-lib/i686-pc-linux-gnu/2.97/cc1plus -v -iprefix 
/disk2/gcctest/bin/../lib/gcc-lib/i686-pc-linux-gnu/2.97/ -D__GNUC__=2 
-D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux 
-D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix 
-D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ 
-D__tune_i686__ -D__tune_pentiumpro__ x5.cc -D__GNUG__=2 -quiet -dumpbase 
x5.cc -version -o /tmp/ccYq6itY.s
GNU CPP version 2.97 20001228 (experimental) (cpplib) (i386 Linux/ELF)
GNU C++ version 2.97 20001228 (experimental) (i686-pc-linux-gnu) compiled by 
GNU C version 2.97 20001228 (experimental).
ignoring nonexistent directory "/usr/local/include/g++-v3"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include/g++-v3"
ignoring nonexistent directory 
"/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/qt/include
 .
 /disk2/gcctest/include/g++-v3
 /disk2/gcctest/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
 /disk2/gcctest/i686-pc-linux-gnu/include
 /usr/local/include
 /usr/include
End of search list.
In file included from /disk2/gcctest/include/g++-v3/bits/stl_alloc.h:53,
                 from /disk2/gcctest/include/g++-v3/bits/stl_string_fwd.h:18,
                 from /disk2/gcctest/include/g++-v3/bits/std_ios.h:40,
                 from /disk2/gcctest/include/g++-v3/bits/std_ostream.h:37,
                 from /disk2/gcctest/include/g++-v3/bits/std_iostream.h:38,
                 from /disk2/gcctest/include/g++-v3/iostream:2,
                 from x5.cc:2:
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:51: `lldiv_t' not declared
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:102: syntax error before `(' 
   token
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:103: syntax error before `.' 
   token
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:103: syntax error before `.' 
   token
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:106: syntax error before `(' 
   token
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:107: syntax error before `.' 
   token
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:107: syntax error before `.' 
   token
/disk2/gcctest/include/g++-v3/bits/std_cstdlib.h:117: parse error before `}' 
   token


Andris

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]