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
Andrew Kelley edited this page Aug 7, 2019
·
38 revisions
Troubleshooting
Dual-Abi Linking
If you get one of these:
undefined reference to `_ZNK4llvm17SubtargetFeatures9getStringB5cxx11Ev'
undefined reference to `llvm::SubtargetFeatures::getString() const'
This is because of
C++'s Dual ABI.
Most likely LLVM was compiled with one compiler while Zig was compiled with a
different one, for example GCC vs clang.
LLVM, Clang, and Zig must all be compiled with the same C++ compiler.