[Mono-dev] help subdependancies of native libraries without LD_PRELOAD
vargaz at gmail.com
Thu Dec 27 12:58:03 EST 2007
You should link libk8055.so against libusb.so in the normal C way, then when
libk8055.so is loaded by mono using dlopen (), libusb.so should be loaded
automatically by libc.
On Dec 27, 2007 5:25 PM, Sam Liddicott <sam at liddicott.com> wrote:
> My mono code uses an external native library libk8055.so, but libk8055
> also wants libusb.so
> In the normal C way it expects the elf linker to load libusb.so and
> fixup the function addresses, but what is the mono-develop equivalent of
> gcc's "-lusb"?
> "works", but is hardly natural.
> So how should native libraries dependencies on other libraries be
> specified and resolved?
> a DllImport on libusb.so's usb_init (thankfully) does not solve the
> problem which is reported as:
> /usr/bin/mono: symbol lookup error: /usr/lib/libk8055.so: undefined
> symbol: usb_init
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list