Upgrading libstdc++ questions
Samir Rajguru
srajguru@brocade.com
Wed Aug 28 02:13:00 GMT 2002
I am trying to upgrade libstdc++ on my gcc installation. The version of gcc
I am using is 2.95.3. The version of libstdc++ I am trying to upgrade to is
2.90.8 (the latest version that is supposed to work on 2.95.3).
Directions say that I need to rebuild libgcc.a along with the new libstdc++
for things such as namespaces to work correctly (e.g. to use the stl "std"
namespace).
However, my current gcc installation already has namespaces correctly
working (I am able to use the STL "std" namespace, etc.). So my question is
if I just try to build libstdc++ without rebuilding gcc (libgcc.a) (by
using the --disable-libgcc-rebuild option) will namespaces still work
correctly? If not, why not?
I ask this, because customers who use our libraries do not want to have to
rebuild their gcc compiler as well (we simply provide the new libstdc++
library files to link with).
I am assuming that I must rebuild libgcc.a because when I try to use the
updated library (not having rebuilt libgcc.a) I get a bunch of undefined
reference to errors that look like the following (is this true??):
0): undefined reference to `__length_error(char const *)'
obj/Solaris_GNU/Release/fabricacc/sallite/saldcmd.o: In function
`basic_string<char, char_traits<char>, allocator<char> >::_M_che
ck(unsigned int) const':
obj/Solaris_GNU/Release/fabricacc/sallite/saldcmd.o(.basic_string<char,
char_traits<char>, allocator<char> >::gnu.linkonce.t._M_c
heck(unsigned int) const+0x30): undefined reference to `__out_of_range(char
const *)'
obj/Solaris_GNU/Release/fabricacc/sallite/saldfwconf.o: In function
`unNibble(char)':
obj/Solaris_GNU/Release/fabricacc/sallite/saldfwconf.o(.text+0x2f0):
undefined reference to `LogManager::trace(basic_string<char,
char_traits<char>, allocator<char> > const &, char const *,
basic_string<char, char_traits<char>, allocator<char> > const &, cha
r const *, basic_string<char, char_traits<char>, allocator<char> > const &,
int)'
obj/Solaris_GNU/Release/fabricacc/sallite/saldfwconf.o(.text+0x554):
undefined reference to `LogManager::trace(basic_string<char,
etc.
All help much appreciated,
Samir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020828/5caf6bc9/attachment.htm>
More information about the Libstdc++
mailing list