This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ build question (Duplicate symbols)
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 19 Mar 2002 21:40:07 -0800 (PST)
- Subject: Re: libstdc++ build question (Duplicate symbols)
> If I compile this with -O0 everything appears fine, if I compile this
> with -O2 I get a definition of the function _ZNKSs6_M_repEv, or (from
> c++filt):
>
> std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::_M_rep() const
>
> Why should I get this only when optimizing?
I have no idea.
I also have no idea why you see this: I don't on linux, for instance.
%nm --demangle ios.o | grep _M_rep
-benjamin