C++ err msgs [ was Re: building libstdc++-v3 from the 20000105snapshot dies with multiple def errors. ]

llewelly@dbritsch.dsl.xmission.com llewelly@dbritsch.dsl.xmission.com
Wed May 10 13:42:00 GMT 2000


On Wed, 10 May 2000, Benjamin Kosnik wrote:

> 
> 
> you can try 
> 
> -fmessage-length=WIDTH
> 
> where WIDTH is a length substituted by you.
> 
> Gaby did a bunch of work on this kind of stuff, so I'll let him give a 
> more authoritative answer.
> 
> I believe this part of the original mail was human-constructed: if not, 
> I'd like to know how to get g++ to format like this (exact command line 
> please)
> 
> .libs/libinst-string.al(stringCTORDUPAL.lo): In 
> function `std::messages_base type_info function':
> /usr/building/libstdc++-devel/gcc-2.95.2.objdir/i686-pc-linux-gnu/libstdc++/src/../../../../gcc-2.95.2/libstdc++/bits/st
> ring.tcc:54:
> multiple definition of
> `
> std::basic_string
> <
>   char,
>   std::char_traits<char>,
>   std::allocator<char>
> >::basic_string(unsigned int, char, std::allocator<char> const &)

Sorry about that. That was me trying to decipher the error message.

> 
> 
> Would be cool if all the messages looked like this......
> 
> -benjamin
> 
> 
> On Wed, 10 May 2000, Dr. David Gilbert wrote:
> 
> > Is there any way to make the errors which appear after misusing parts of
> > the library (especially some of the template classes) more friendly?  New
> > users run a mile when they get a single error message half a page
> > long.....
> 



More information about the Libstdc++ mailing list