This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error with missing 'rebind' in current CVS libstdc++


Hi.

A build of yesterday's GCC-3.4 CVS code is now showing problems when I
try to build Blackbox (a nice C++ based window manager). Here's the
error message the compiler produces:


 g++ -DHAVE_CONFIG_H -I. -I/home/arth/gnu/blackbox/lib -I.. -DNDEBUG -I/usr/X11R6/include -DSHAPE -DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/usr/local/share/blackbox/nls\" -O2 -march=pentium-mmx -finline-limit=100000 -fno-check-new -fno-exceptions -Wall -W -pedantic -Woverloaded-virtual -Wshadow -Winline -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/X11R6/include -MT Application.lo -MD -MP -MF .deps/Application.Tpo -c /home/arth/gnu/blackbox/lib/Application.cc  -fPIC -DPIC -o .libs/Application.o
In file included from /home/arth/gnu/blackbox/lib/Application.cc:28:
/opt/gnu/lib/gcc/i586-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/stl_bvector.h: In instantiation of `__gnu_norm::_Bvector_base<std::__alloc>':
/opt/gnu/lib/gcc/i586-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/stl_bvector.h:301:   instantiated from `__gnu_norm::vector<bool, std::__alloc>'
/home/arth/gnu/blackbox/lib/Menu.hh:267:   instantiated from here
/opt/gnu/lib/gcc/i586-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/stl_bvector.h:267: error: no class template named `rebind' in `class std::__alloc'
/opt/gnu/lib/gcc/i586-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/stl_bvector.h:268: error: no class template named `rebind' in `class std::__alloc'
make[2]: *** [Application.lo] Error 1

This error occurs when building many of the other files as well. GCC
builds from about two weeks ago worked fine, so I'm guessing that the
recent changes regarding allocators has produced this snag. I got lost
in the STL code very quickly and couldn't figure out what may be wrong.

Is this a bug in the STL code?

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822


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