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]

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


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