<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98473>98473</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
How to compile projects with static library of Arrow
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Ognimalf
</td>
</tr>
</table>
<pre>
I'm trying to build a project which need to use apache arrow, and I'm trying to incorporate it as a static library. But the project has linked with libc++.a, which will cause a linker error:
```
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libarrow.a(utf8.cc.o): undefined reference to symbol '_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_disposeEv@@GLIBCXX_3.4.21'
```
It seems like the static lib is built with glibcxx, which contains some symbols that are not present in libc++.a. I wonder if there has some solution to make it work.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsk8-OozgQxp_GXEpBYOgABw6dmbAbaf8c-jLaCzKmgNoYO7JNSN5-ZejpVq9GQkZQdlV9v_osnKNRI9bs5cRevkdi8ZOx9d-jplmoIepM_6wvjBczePskPYI30C2kehBws-ZflB7WieQEGrEP0cUhiJuQE4Kw1qyMfwOhe_h_FtLS2JuxwiOQB-FAgPPCkwRFnRX2GcNp8eAn_Kg0CQeK9BV7WMlPYaNk_MT4KRahzt7JSkqBFFsj-3YLaK2xLHtlyXeW_FyPyfuzf_JmcZbxpiPNeKN6lr3Cx09FHePNozy2x_ygSC-Pw6iXPbDpDB2Uix_KWMrYMF6F44vucSCNPVgc0KKWGLS759wZBYwX7T9_vfmibeXjkaYp74Qj2TpvSY-X9c2nqZyEbb0V5N1lPb-Jy3o-p0n7Z9uTuxmH5zvLE5Ynv_1xOX378aPN4jzmKePFrzVu68WDQ5wDyytugD_BA7ltwH4nPAbEj8cnXGm0F6QdODPjuxAHfhIehEXQxsPNokPtgfSXAcVwgdXoHi3QEKpa3Aa6JzJq8WR0oDOL62aJ1dhrHPV11ldZJSKs04InRcJ5lkZTLQesujTBqij6skwLWXSFOB5TfiyH4ZjlEdU84XlSBK4vSZbE2cDLsuyqruzKNBUVyxOcBalYqfscGztG5NyCdVXmRRYp0aFy28XgXOMKW5BxHu6JrcOZQ7eMjuWJIufdZxZPXmH9u1mDGGnmG6kPC7sd61ejgxngNXgoWqyqJ-9vLliVN4w3I_lp6WJp5uA1df_5OrwnZLzZGnOMN3vj95r_FwAA___FvUFc">