You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
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
The text was updated successfully, but these errors were encountered: