This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
libstdc++-v3 Does Not Compile
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: libstdc++-v3 Does Not Compile
- From: Mohamed Ezz <ezz at peregrine dot com>
- Date: Fri, 9 Mar 2001 11:06:49 -0500 (EST)
Hello All,
I am working on a port of C++ code from Windows to Linux. The code
uses the STL and uses namespaces extensively. I am getting compilation
errors like:
In file included from ../../source/cpp/idd/hwstring.cpp:13:
../../source/cpp/idd/hwstring.h:19: `::string' undeclared (first use
here)
I decided to download the sources for libstc++-v3 and gcc-2.95.2 and
recompile everything. I use the following commands for the
configuration:
../gcc-2.95.2/configure --prefix /usr --enable-haifa
--enable-version-specific-runtime-libs --enable-languages=c++,java
--enable-long_long --enable-namespaces --enable-shared
Notice the --enable-namespaces switch. The problem is I keep getting
the following compilation error when I `make bootstrap`
c++io.cc: In method `struct __c_streampos __basic_file::seekoff(long int, _Ios_S
eekdir, _Ios_Openmode = operator |((enum _Ios_Openmode)1, (enum _Ios_Openmode)2))':
c++io.cc:210: conversion from `__off64_t' to non-scalar type `__c_streampos' req
uested
c++io.cc: In method `struct __c_streampos __basic_file::seekpos(_G_fpos64_t, _Io
s_Openmode = operator |((enum _Ios_Openmode)1, (enum _Ios_Openmode)2))':
c++io.cc:214: `struct __c_streampos' used where a `long long int' was expected
cc1plus: warnings being treated as errors
c++io.cc:214: warning: control reaches end of non-void function `__basic_file::s
eekpos(_G_fpos64_t, _Ios_Openmode)'
c++io.cc: In method `struct __c_streampos __basic_file::sys_seek(_G_fpos64_t, _I
os_Seekdir)':
c++io.cc:243: `struct __c_streampos' used where a `long long int' was expected
c++io.cc:243: warning: control reaches end of non-void function `__basic_file::s
ys_seek(_G_fpos64_t, _Ios_Seekdir)'
make[3]: *** [c++io.lo] Error 1
I would appreciate any prompt help/hint on this.
Mohamed Ezz