analogdevicesinc / libiio

A cross platform library for interfacing with local and remote Linux IIO devices

Home Page:http://analogdevicesinc.github.io/libiio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation crossroads

vvsvvsvvs opened this issue · comments

The cmake compilation process adds 2 libraries: so.0 and so.1 with the same name (libiio.**).
Ld(config) subsytems knows one: so.1, thus when linking old progs with -liio, one will get compilation errors with absent functions.

The compiler will always pick libiio.so when compiling with -liio, which always point to the v1.0 library.

If you want to compile programs based on v0.x Libiio, you have to use Libiio v0.25 or from the libiio-v0 branch.

1st time solution is to add /usr/lib/x86_64-linux-gnu/libiio.so.0 when linking. But some progs go to SIG11.