Hello all,

Could it be that at some point in time, linking against boost_thread
became necessary for programs that link against uhd?

ODR-DabMod [1] uses pkgconfig to find out how to properly link against
libuhd, whose .pc file [2] lists -lboost_system but not -lboost_thread.
ODR-DabMod isn't using Boost::Thread anymore (since about one year).

Linking fails (Arch Linux) with

  CXXLD    odr-dabmod
/usr/bin/ld: src/output/odr_dabmod-UHD.o: undefined reference to symbol
'_ZTIN5boost6detail16thread_data_baseE'
/usr/bin/ld: /usr/lib/libboost_thread.so.1.72.0: error adding symbols:
DSO missing from command line

and works if I manually add -lboost_thread to my LDFLAGS.

Same on a debian machine that has boost 1.67.

I am still a bit confused about why and when it started failing though,
so I prefer asking before opening an issue. Thanks in advance for your
insight.

Cheers,
mpb

[1]
https://github.com/Opendigitalradio/ODR-DabMod/

[2]
https://github.com/EttusResearch/uhd/blob/master/host/uhd.pc.in

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to