difficulties converting to stdc++-v3 (2.90.8)

Louis Janosek louis@kazan.com
Thu Oct 5 20:48:00 GMT 2000


I have been unsuccessfully trying to convert from libstdc++-3 (shipped w/
gcc 2.95.2) to libstdc++-v3. I have tried both including a rebuild of gcc
with the make and install of libstdc++-v3 and not doing that (rebuilding
gcc). Both times, when i try to compile code using strstream, I get a large
number of errors regarding ios_base.h (listed below). This problem is not
encountered by libstdc++-3. I configured libstdc++-v3 for "--enable-debug
--enable-threads=posix" (and enable-libgcc-rebuild=DIR when performed
rebuild of gcc). Any thoughts would be appreciated. 

OS: SlackWare 7.1
gcc 2.95.2
make 3.79


Louis Janosek

============================================================================
============
/usr/local/bin/g++ -c  -DKAZAN -DLINUX -DCOMBYPASS -Wno-non-template-friend
-I../../kazan/include -I/usr/local/include/g++-v3 -g -DDEBUG -D_DEBUG
-DLINUX -DGNU -DUNIX -I../../kazan/include  -o linux-g/_epigisctrl.o
_epigisctrl.cpp
In file included from /usr/local/include/g++-v3/bits/std_ios.h:43,
                 from /usr/local/include/g++-v3/bits/std_strstream.h:27,
                 from /usr/local/include/g++-v3/strstream:2,
                 from ../epigis/../internalinterfaces/wtvariant.h:18,
                 from ../epigis/../internalinterfaces/standardtypes.h:8,
                 from ../epigis/_epigisctrl.h:23,
                 from _epigisctrl.cpp:15:
/usr/local/include/g++-v3/bits/ios_base.h:144: parse error before `{'
/usr/local/include/g++-v3/bits/ios_base.h:152: destructor `failure' must
match class name `ios_base'
/usr/local/include/g++-v3/bits/ios_base.h:226: parse error before
`protected'
/usr/local/include/g++-v3/bits/ios_base.h:239: syntax error before `;'
/usr/local/include/g++-v3/bits/ios_base.h:243: parse error before `,'
/usr/local/include/g++-v3/bits/ios_base.h:245: missing ';' before right
brace
/usr/local/include/g++-v3/bits/ios_base.h:248: semicolon missing after
declaration of `_Callback_list'
/usr/local/include/g++-v3/bits/ios_base.h:248: two or more data types in
declaration of `_M_add_reference'
/usr/local/include/g++-v3/bits/ios_base.h:248: semicolon missing after
declaration of `struct _Callback_list'
/usr/local/include/g++-v3/bits/ios_base.h: In function `int
_M_add_reference()':
/usr/local/include/g++-v3/bits/ios_base.h:248: `_M_refcount' undeclared
(first use this function)
/usr/local/include/g++-v3/bits/ios_base.h:248: (Each undeclared identifier
is reported only once
/usr/local/include/g++-v3/bits/ios_base.h:248: for each function it appears
in.)
/usr/local/include/g++-v3/bits/ios_base.h: At top level:
/usr/local/include/g++-v3/bits/ios_base.h:284: parse error before `public'
/usr/local/include/g++-v3/bits/ios_base.h:295: destructors must be member
functions
/usr/local/include/g++-v3/bits/ios_base.h:296: parse error before `private'
/usr/local/include/g++-v3/bits/ios_base.h:306: parse error before `}'
/usr/local/include/g++-v3/bits/ios_base.h:310: non-member function `flags()'
cannot have `const' method qualifier
/usr/local/include/g++-v3/bits/ios_base.h:341: non-member function
`precision()' cannot have `const' method qualifier
/usr/local/include/g++-v3/bits/ios_base.h: In function `streamsize
precision()':
/usr/local/include/g++-v3/bits/ios_base.h:341: `_M_precision' undeclared
(first use this function)
/usr/local/include/g++-v3/bits/ios_base.h: At top level:
/usr/local/include/g++-v3/bits/ios_base.h:352: non-member function `width()'
cannot have `const' method qualifier
/usr/local/include/g++-v3/bits/ios_base.h:370: non-member function
`getloc()' cannot have `const' method qualifier
/usr/local/include/g++-v3/bits/ios_base.h:393: destructors must be member
functions
/usr/local/include/g++-v3/bits/ios_base.h:395: parse error before
`protected'
/usr/local/include/g++-v3/bits/ios_base.h:402: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:408: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:415: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:422: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:429: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:436: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:443: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:450: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:457: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:464: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:471: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:478: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:485: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:492: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:499: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:507: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:514: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:521: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:529: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:536: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:543: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:551: syntax error before `&'
/usr/local/include/g++-v3/bits/ios_base.h:558: syntax error before `&'
In file included from /usr/local/include/g++-v3/bits/std_ios.h:44,
                 from /usr/local/include/g++-v3/bits/std_strstream.h:27,
                 from /usr/local/include/g++-v3/strstream:2,
                 from ../epigis/../internalinterfaces/wtvariant.h:18,
                 from ../epigis/../internalinterfaces/standardtypes.h:8,
                 from ../epigis/_epigisctrl.h:23,
                 from _epigisctrl.cpp:15:
/usr/local/include/g++-v3/bits/std_streambuf.h:107: syntax error before `;'
/usr/local/include/g++-v3/bits/std_streambuf.h:110: invalid member template
declaration `_M_locale_buf'
/usr/local/include/g++-v3/bits/std_streambuf.h:113: invalid member template
declaration `_M_locale_set'
/usr/local/include/g++-v3/bits/std_streambuf.h:116: invalid member template
declaration `_M_fctype_buf'
/usr/local/include/g++-v3/bits/std_streambuf.h:128: template definition of
non-template `void ios_base::_M_buf_bump(typename _Traits::off_type)'
/usr/local/include/g++-v3/bits/std_streambuf.h:220: type specifier omitted
for parameter
/usr/local/include/g++-v3/bits/std_streambuf.h:220: parse error before `,'
/usr/local/include/g++-v3/bits/std_streambuf.h:222: template definition of
non-template `typename _Traits::pos_type ios_base::pubseekoff(...)'
/usr/local/include/g++-v3/bits/std_streambuf.h:226: type specifier omitted
for parameter
/usr/local/include/g++-v3/bits/std_streambuf.h:226: parse error before `='
/usr/local/include/g++-v3/bits/std_streambuf.h:227: template definition of
non-template `typename _Traits::pos_type ios_base::pubseekpos(...)'
/usr/local/include/g++-v3/bits/std_streambuf.h:363: type specifier omitted
for parameter
/usr/local/include/g++-v3/bits/std_streambuf.h:364: type specifier omitted
for parameter
/usr/local/include/g++-v3/bits/std_streambuf.h:365: template definition of
non-template `typename _Traits::pos_type ios_base::seekoff(typename
_Traits::off_type)'
/usr/local/include/g++-v3/bits/std_streambuf.h:369: type specifier omitted
for parameter
/usr/local/include/g++-v3/bits/std_streambuf.h:370: template definition of
non-template `typename _Traits::pos_type ios_base::seekpos(typename
_Traits::pos_type)'
/usr/local/include/g++-v3/bits/std_streambuf.h: In method `void
basic_streambuf<_CharT,_Traits>::_M_buf_bump(typename _Traits::off_type)':
/usr/local/include/g++-v3/bits/std_streambuf.h:128: template definition of
non-template `void basic_streambuf<_CharT,_Traits>::_M_buf_bump(typename
_Traits::off_type)'
/usr/local/include/g++-v3/bits/std_streambuf.h: In method `typename
_Traits::pos_type basic_streambuf<_CharT,_Traits>::pubseekoff(...)':
/usr/local/include/g++-v3/bits/std_streambuf.h:222: template definition of
non-template `typename _Traits::pos_type
basic_streambuf<_CharT,_Traits>::pubseekoff(...)'
/usr/local/include/g++-v3/bits/std_streambuf.h: In method `typename
_Traits::pos_type basic_streambuf<_CharT,_Traits>::pubseekpos(...)':
/usr/local/include/g++-v3/bits/std_streambuf.h:227: template definition of
non-template `typename _Traits::pos_type
basic_streambuf<_CharT,_Traits>::pubseekpos(...)'
/usr/local/include/g++-v3/bits/std_streambuf.h: In method
`basic_streambuf<_CharT,_Traits>::basic_streambuf()':
/usr/local/include/g++-v3/bits/std_streambuf.h:289: class
`basic_streambuf<_CharT,_Traits>' does not have any field named `_M_mode'
/usr/local/include/g++-v3/bits/std_streambuf.h:290: class
`basic_streambuf<_CharT,_Traits>' does not have any field named
`_M_locale_buf'
/usr/local/include/g++-v3/bits/std_streambuf.h:290: class
`basic_streambuf<_CharT,_Traits>' does not have any field named
`_M_locale_set'
/usr/local/include/g++-v3/bits/std_streambuf.h: In method `typename
_Traits::pos_type basic_streambuf<_CharT,_Traits>::seekoff(typename
_Traits::off_type)':
/usr/local/include/g++-v3/bits/std_streambuf.h:365: template definition of
non-template `typename _Traits::pos_type
basic_streambuf<_CharT,_Traits>::seekoff(typename _Traits::off_type)'
/usr/local/include/g++-v3/bits/std_streambuf.h: In method `typename
_Traits::pos_type basic_streambuf<_CharT,_Traits>::seekpos(typename
_Traits::pos_type)':
/usr/local/include/g++-v3/bits/std_streambuf.h:370: template definition of
non-template `typename _Traits::pos_type
basic_streambuf<_CharT,_Traits>::seekpos(typename _Traits::pos_type)'
In file included from /usr/local/include/g++-v3/bits/std_strstream.h:28,
                 from /usr/local/include/g++-v3/strstream:2,
                 from ../epigis/../internalinterfaces/wtvariant.h:18,
                 from ../epigis/../internalinterfaces/standardtypes.h:8,
                 from ../epigis/_epigisctrl.h:23,
                 from _epigisctrl.cpp:15:
/usr/local/include/g++-v3/bits/std_istream.h: At top level:
/usr/local/include/g++-v3/bits/std_istream.h:96: parse error before `)'
/usr/local/include/g++-v3/bits/std_istream.h:96:
`basic_istream<_CharT,_Traits>::operator >>(...)' must take exactly one
argument
/usr/local/include/g++-v3/bits/std_istream.h:96: confused by earlier errors,
bailing out
make: *** [linux-g/_epigisctrl.o] Error 1


More information about the Libstdc++ mailing list