[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic linking / compilation question



On 9 June 2015 at 15:37, David Malcolm <dmalcolm@redhat.com> wrote:
> It occurred to me overnight that given that libgccjit.so is linked
> against the C++ STL (libstdc++.so.6 on my box), there's a chance of
> issues when linking against C++ code, due to the change in the ABI of
> std::string in GCC 5 (for adherence to the C++11 language standard).
>
> So if you start seeing linker errors about unresolved symbols involving
> "__cxx11", you might want to build with -D_GLIBCXX_USE_CXX11_ABI=0.
>

Ok thanks - will bear that in mind. I do use C++ but only for the LLVM
implementation. Lua itself is in C, and my intention is keep to C for
libgccjit. So unless both LLVM and libgccjit are linked at the same
time hopefully there will not be an issue.

Regards