authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-01-15 17:18:03-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-01-15 17:18:03-07:00
log74b1665586bafe0fcd063480b9480a77cbf93ab2
treea39a1c25ccc56dc54e66022f1b52dc18af7d9792
parent39c1348862036503c71b7661a7902eb800d4a9bf

more readme formatting


1 files changed, 6 insertions(+), 3 deletions(-)

README.md+6-3
......@@ -100,9 +100,12 @@ undefined reference to `_ZNK4llvm17SubtargetFeatures9getStringB5cxx11Ev'
100100undefined reference to `llvm::SubtargetFeatures::getString() const'
101101```
102102
103This is because of [C++'s Dual ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html).
103This is because of
104[C++'s Dual ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html).
104105Most likely LLVM was compiled with one compiler while Zig was compiled with a
105106different one, for example GCC vs clang.
106107
107To fix this, compile Zig with the same compiler that LLVM was compiled with, or
108add `-DZIG_LLVM_OLD_CXX_ABI=yes` to the cmake configure line.
108To fix this, you have 2 options:
109
110 * Compile Zig with the same compiler that LLVM was compiled with.
111 * Add `-DZIG_LLVM_OLD_CXX_ABI=yes` to the cmake configure line.