[请求] 一个C编译的问题。

kitaro

知名会员
注册
2002-01-21
消息
1,278
荣誉分数
24
声望点数
198
我用gcc编译一个库,发现定义的函数的名字发生了变化,比如我定义的函数是ABCDEF,结果在编译出来的库里却变成了_Z16ABCDEFoooppp,自动得增加了一些前缀和后缀,这是怎么回事啊?

多谢!!!
 
c/.c or c++/.cpp

that is the signature of a function.
 
It's called mangled name of the function. In order to distinguish overloaded functions gcc generates mangled function names.
 
后退
顶部