duplicate symbols for architecture armv7 in two static libraries

152 Views Asked by At

Two static libraries (iMagPay and chinese-dukpt) used here to read card data. And I faced issue of duplicate symbols.

imagpay & chinese-dukpt

Both static library uses C++ code as well.

I used -all_load linker flag also, still see this error.

enter image description here

1

There are 1 best solutions below

0
On

Did you check out these threads?

This happens when you link libraries 'too broadly' i.e link stuff you don't need. If you don't need a library, don't link it.