This is the mail archive of the mailing list for the GCC 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]

Upgrading libstdc++ questions

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

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':
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)':
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)'
undefined reference to `LogManager::trace(basic_string<char,

All help much appreciated,

Samir Rajguru - email
(510) 401-3282 x1034 - voicemail/fax


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