Recent

Author Topic: Reference not defined for  (Read 1565 times)

Acosta

  • Newbie
  • Posts: 1
Reference not defined for
« on: September 20, 2020, 06:45:05 pm »
A litle help...

When loading a lib(.so) with dependency on a second lib in linux is not being able to load the second dependency lib(libUSB).

I created a C ++ lib with codeblocks to consume libUSB, already doing the A / D conversion calculations.
I created a test project in the codeblocks and imported the lib well, just reference the second lib for the link.

procedure printHello (); external 'libETQ0.so';

libETQ0.so Is my lib and here call the libUSB,

/usr/bin/ld.bfd: ./libETQ0.so: reference not defined for "libusb_init"

Include the libUsb path in the system path, but with no results. Export PATH = $ PATH:/usr/local/lib

I've been picking up on this for a few days.
I tried a few different techniques to load the lib, but all to no avail.
This technique using external is the one that makes it clear what the problem is.
If anyone can give any tips, I will thank you very much...   :'(

 

TinyPortal © 2005-2018