c++/7708: g++ -O inserts definition of std::string::replace in library module
bangerth@dealii.org
bangerth@dealii.org
Thu Dec 19 18:19:00 GMT 2002
Synopsis: g++ -O inserts definition of std::string::replace in library module
State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Thu Dec 19 18:19:52 2002
State-Changed-Why:
I tried your program with gcc3.2, but on x86 linux. I can
confirm that the mentioned symbols are present in the
object file. However, they are weak:
00000000 W std::string& std::string::_M_replace<....
Weak symbols means: they can be in multiple object files,
and one of these copies is picked at link time.
Could you possibly check whether the problem still exists
on your platform with gcc3.2.1?
Thanks
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7708
More information about the Gcc-prs
mailing list