Where does the "__Fv" come from that gets added to all my names?

Todd Vierling tv@pobox.com
Fri Apr 3 21:52:00 GMT 1998


On Tue, 31 Mar 1998, Brad M. Garcia wrote:

: A C++ function called "foo" gets mangled into "foo__Fv".
: I've noticed that "__Fv" gets added to the end of some of my names,
: but not others.

If you've installed binutils, you should find a program called "c++filt".
Try:

echo 'foo__Fv' | c++filt

You'll see the output as:

foo(void)

Sound like a function you declared?  :)  C++ name mangling happens on _all_
functions declared with C++ linkage, that is, everything but those declared
'extern "C"' and 'int main(...)'.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)




More information about the Gcc mailing list