Hi all,

Thanks for your replies, this is very helpful.

Antoine, your solution works, that's great. I think it corroborate the
other answers. The tool chain used to build my custom library should be
similar to the one used to build the arrow libraries in order for it to
work.

Thanks again.



On Tue, 21 Sept 2021 at 09:05, Antoine Pitrou <[email protected]> wrote:

>
> Hello,
>
> On Mon, 20 Sep 2021 20:04:19 +0100
> Arthur Andres <[email protected]> wrote:
> >
> > Here's how far I got to far:
> > 1. If my C++ code only tries to call `arrow::py::import_pyarrow()`, it
> > works (and returns 0)
> > 2. If my C++ code tries to do anything else with arrow (like creating a
> > schema), I get this error:
> > ```
> > Traceback (most recent call last):
> >   File "<string>", line 1, in <module>
> > ImportError: /home/arthur/source/pyarrowbind/build/
> > bindings.cpython-38-x86_64-linux-gnu.so: undefined symbol:
> > _ZNK5arrow6Schema8ToStringB5cxx11Eb
> > ```
>
> You may have a solution here:
>
> https://arrow.apache.org/docs/python/extending.html#toolchain-compatibility-linux
>
> Can you try to pass -D_GLIBCXX_USE_CXX11_ABI=0 when compiling your
> library?
>
> Regards
>
> Antoine.
>
>
>

Reply via email to