[llvm-bugs] [Bug 25656] New: gcc cxx11 abi and clang
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 27 04:20:20 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25656
Bug ID: 25656
Summary: gcc cxx11 abi and clang
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: claprix at yandex.ru
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Hi.
Ubuntu 15.04, gcc 5.2.1, recent clang APT http://llvm.org/apt/
I use libglog. Which is built with new gcc cxx11 abi. Clang is unable to
perform this.
#include <glog/logging.h>
int main() {
google::base::CheckOpMessageBuilder("").NewString();
return 0;
}
clang++ -std=c++14 test.cc -lglog
/tmp/test-65a5b3.o:test.cc:function main: error: undefined reference to
'google::base::CheckOpMessageBuilder::NewString()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
$ nm /usr/lib/x86_64-linux-gnu/libglog.a | c++filt | grep NewString
00000000000042a0 T google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151127/1ef7c5fa/attachment-0001.html>
More information about the llvm-bugs
mailing list