Linker error

Cross compiling VS17 and have now hit a snag in linker stage. It compiles but says it can't find the two files/libs below:
...

1>Linking objects
1>/usr/bin/ld: cannot find -lUSB-1.0
1>/usr/bin/ld: cannot find -lArducamlib

I have directly copied them (libUSB-1.0.a & libArducamlib.a) into /usr/bin/(confirmed) but still get the error. I also have .so forms of the library files as well, but kind of don't know what to do with them.

Please help. Thx in advance
Last edited on
Shouldn't they go in /usr/lib/ ?
Yes, that is my understanding. But I am confused:

for -lUSB-1.0 I have libUSB-1.0.a as the file
for -iArducamlib I have libArducamlib.a as the library file.

When I put them in the usr/lib (sorry abt the /usr/bin ref) it still is looking for Arducamlib instead of libArducamlib.a and looking for USB-1.0 instead of libUSB-1.0.a.

In the Eclipse IDE windows side of things, you would truncate the library name and extension in the name in the Linker Settings so it would appear exactly that way: -lArducamlib -lUSB-1.0 in the compiler command line. I am now working in Visual Studio and I am missing a beat here, it can't be this hard.

I am using Visual Studio 2017 c++ for Linux. I wonder if there is a Linux directories/setting cluster I am missing in VS.
Last edited on
Topic archived. No new replies allowed.