You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
example Linking Error: undefined reference to 'butil::demangle(char const*)' #6
Activity
chenzhangyi commentedon Sep 15, 2017
目前没有这样的编译环境:(.. 方便的话在 src/butil/class_name.cpp 里面加上. #include <butil/class_name.h> (这样这个编译单端能看到函数声明)。 并尝试再次编译.
sduzh commentedon Sep 15, 2017
解决了,原因是因为在模板函数class_name_str()内部声明了std::string demangle(const char*)这个函数,这个好像是gcc 5的bug:在模板内部声明的std::string不会有[abi:cxx11] tag,这里有个相似问题描述。
解决方法就是删除class_name_str()内部的demangle()函数声明
fix issue #6
Merge pull request apache#6 from gtarcoder/develop/timer