This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: compile fails on hypot
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: compile fails on hypot
- From: larsbj at lyx dot org (Lars Gullik Bjønnes)
- Date: 01 Nov 2000 01:32:11 +0100
- Cc: libstdc++ at sources dot redhat dot com
- Organization: LyX Developer http://www.lyx.org/
- References: <Pine.SOL.3.91.1001031102528.27983D-100000@taarna.cygnus.com>
Benjamin Kosnik <bkoz@redhat.com> writes:
| I just checked in a fix for this. After that checking, I was able to
| build both with and without shadow headers.
Yes, I also managed the build now.... however
#include <string>
int main()
{
std::string a("hello there");
}
Fails brutaly, se below.
shared and shadow enabled, built in clean dir "make bootstrap".
Deleted installed gcc and libs/include files before install.
Lgb
/usr/local/include/g++-v3/bits/std_cstdio.h:136: `printf' is already declared
in this scope
/usr/local/include/g++-v3/bits/c++io.h:40: syntax error before ';' token
/usr/local/include/g++-v3/bits/c++io.h:41: syntax error before ';' token
/usr/local/include/g++-v3/bits/c++io.h:44: syntax error before ';' token
/usr/local/include/g++-v3/bits/c++io.h:45: syntax error before ';' token
/usr/local/include/g++-v3/bits/c++io.h:46: syntax error before ';' token
/usr/local/include/g++-v3/bits/c++io.h:62: syntax error before ';' token
/usr/local/include/g++-v3/bits/c++io.h:63: syntax error before ';' token
/usr/local/include/g++-v3/bits/c++io.h:66: syntax error before ';' token
/usr/local/include/g++-v3/bits/fpos.h:65: parse error before "streamoff"
/usr/local/include/g++-v3/bits/fpos.h:66: missing ';' before right brace
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:63: class `std::fpos<_StateT>' does not
have any field named `_M_st'
/usr/local/include/g++-v3/bits/fpos.h:63: class `std::fpos<_StateT>' does not
have any field named `_M_pos'
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:68: parse error before ')' token
/usr/local/include/g++-v3/bits/fpos.h:69: ISO C++ forbids defining types within
return type
/usr/local/include/g++-v3/bits/fpos.h:69: semicolon missing after declaration
of `class std::fpos<_StateT>'
/usr/local/include/g++-v3/bits/fpos.h:69: declaration of template
`template<class _StateT>, int std::fpos(...)'
/usr/local/include/g++-v3/bits/fpos.h:48: conflicts with previous declaration
`template<class _StateT>, class std::fpos'
/usr/local/include/g++-v3/bits/fpos.h:48: previous non-function declaration
`template<class _StateT>, class std::fpos'
/usr/local/include/g++-v3/bits/fpos.h:69: conflicts with function declaration
`template<class _StateT>, int std::fpos(...)'
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:69: base initializers not allowed for
non-member functions
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:71: parse error before '(' token
/usr/local/include/g++-v3/bits/fpos.h:71: syntax error before '(' token
/usr/local/include/g++-v3/bits/fpos.h:73: syntax error before '&' token
/usr/local/include/g++-v3/bits/fpos.h:76: syntax error before '&' token
/usr/local/include/g++-v3/bits/fpos.h:80: parse error before '&' token
/usr/local/include/g++-v3/bits/fpos.h:80: non-member function `bool
operator==(...)' cannot have `const' method qualifier
/usr/local/include/g++-v3/bits/fpos.h:80: `bool operator==(...)' must have an
argument of class or enumerated type
/usr/local/include/g++-v3/bits/fpos.h:80: `bool operator==(...)' must take
exactly two arguments
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:80: `_M_pos' undeclared (first use this
function)
/usr/local/include/g++-v3/bits/fpos.h:80: (Each undeclared identifier is
reported only once for each function it appears in.)
/usr/local/include/g++-v3/bits/fpos.h:80: `__pos2' undeclared (first use this
function)
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:83: parse error before '&' token
/usr/local/include/g++-v3/bits/fpos.h:83: non-member function `bool
operator!=(...)' cannot have `const' method qualifier
/usr/local/include/g++-v3/bits/fpos.h:83: `bool operator!=(...)' must have an
argument of class or enumerated type
/usr/local/include/g++-v3/bits/fpos.h:83: `bool operator!=(...)' must take
exactly two arguments
/usr/local/include/g++-v3/bits/fpos.h:86: syntax error before '(' token
/usr/local/include/g++-v3/bits/fpos.h:89: `streamoff' was not declared in this
scope
/usr/local/include/g++-v3/bits/fpos.h:89: parse error before ')' token
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:89: `__pos' undeclared (first use this
function)
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:91: parse error before 'CPP_NAME' token
/usr/local/include/g++-v3/bits/fpos.h:93: syntax error before ';' token
/usr/local/include/g++-v3/bits/fpos.h:98: syntax error before "operator"
/usr/local/include/g++-v3/bits/fpos.h:98: `_State' was not declared in this
scope
/usr/local/include/g++-v3/bits/fpos.h:98: parse error before '&' token
/usr/local/include/g++-v3/bits/fpos.h:99: `int operator+(...)' must have an
argument of class or enumerated type
/usr/local/include/g++-v3/bits/fpos.h:99: `int operator+(...)' must take either
one or two arguments
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:100: `fpos' undeclared (first use this
function)
/usr/local/include/g++-v3/bits/fpos.h:100: `_State' undeclared (first use this
function)
/usr/local/include/g++-v3/bits/fpos.h:100: `t' undeclared (first use this
function)
/usr/local/include/g++-v3/bits/fpos.h:101: `__off' undeclared (first use this
function)
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:106: syntax error before "operator"
/usr/local/include/g++-v3/bits/fpos.h:106: parse error before '&' token
/usr/local/include/g++-v3/bits/fpos.h:107: `int operator-(...)' must have an
argument of class or enumerated type
/usr/local/include/g++-v3/bits/fpos.h:107: `int operator-(...)' must take
either one or two arguments
/usr/local/include/g++-v3/bits/fpos.h:114: syntax error before "operator"
/usr/local/include/g++-v3/bits/fpos.h:114: parse error before '&' token
/usr/local/include/g++-v3/bits/fpos.h:115: `int operator-(...)' must have an
argument of class or enumerated type
/usr/local/include/g++-v3/bits/fpos.h:115: `int operator-(...)' must take
either one or two arguments
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:115: redefinition of `int operator-(...)'
/usr/local/include/g++-v3/bits/fpos.h:107: `int operator-(...)' previously
defined here
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:115: `__pos1' undeclared (first use this
function)
In file included from /usr/local/include/g++-v3/bits/char_traits.h:39,
from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/fpos.h:117: parse error before '}' token
/usr/local/include/g++-v3/bits/char_traits.h:49: `struct std::fpos' redeclared
as different kind of symbol
/usr/local/include/g++-v3/bits/fpos.h:48: previous declaration of
`template<class _StateT>, class std::fpos<_StateT>'
/usr/local/include/g++-v3/bits/char_traits.h:66: parse error before ';' token
/usr/local/include/g++-v3/bits/char_traits.h:154: parse error before ';' token
In file included from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/char_traits.h:208: invalid use of undefined type
`class std::fpos'
/usr/local/include/g++-v3/bits/char_traits.h:49: forward declaration of `class
std::fpos'
In file included from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/char_traits.h:228: parse error before ';' token
In file included from /usr/local/include/g++-v3/bits/stl_string_fwd.h:19,
from /usr/local/include/g++-v3/bits/std_string.h:38,
from /usr/local/include/g++-v3/string:2,
from teststring.C:2:
/usr/local/include/g++-v3/bits/char_traits.h:279: invalid use of undefined type
`class std::fpos'
/usr/local/include/g++-v3/bits/char_traits.h:49: forward declaration of `class
std::fpos'