-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example Linking Error: undefined reference to 'butil::demangle(char const*)' #6
Comments
目前没有这样的编译环境:(.. 方便的话在 src/butil/class_name.cpp 里面加上. #include <butil/class_name.h> (这样这个编译单端能看到函数声明)。 并尝试再次编译. |
解决了,原因是因为在模板函数class_name_str()内部声明了std::string demangle(const char*)这个函数,这个好像是gcc 5的bug:在模板内部声明的std::string不会有[abi:cxx11] tag,这里有个相似问题描述。 |
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
This was referenced Feb 27, 2020
Closed
Closed
Closed
Closed
Closed
Closed
Merged
Merged
Closed
Closed
Closed
This was referenced Jul 8, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libbrpc.so编译成功,cd example/echo_c++; make链接错误:
使用nm查看好像生成了C++11的ABI:
编译环境如下:
ubuntu 16.04 x86_64
gcc 5.4.0
The text was updated successfully, but these errors were encountered: