libcflie
libcflie copied to clipboard
libusb-1.0 Ubuntu 16.04
Hi, i followed "How to build the library from source" and everything was fine. No cmake warnings, no build errors. The examples in /bin worked. But in my IDE (CodeBlocks), "undefined reference" errors were thrown. I had to link "/usr/lib/x86_64-linux-gnu/libusb-1.0.so" manually in the IDE to make it work. Maybe something went wrong in cmake. I hope this may help someone one day :)
Ubuntu 16.04.1 GCC 5.4 cmake 3.5.1
Hm, that's odd. Thanks for the remark, though.
I don't work with CodeBlocks. Could it be that it doesn't use /usr/lib/x86_64-linux-gnu/
in the linker directive per se?
This seems to be related, although doesn't offer a real solution beyond manually linking against the libs you want. Maybe this is a CodeBlocks thing indeed.
I added the directory to the linker directories, just for good measure. Can you check if this resolves your issue?
Thanks