[Mono-dev] help subdependancies of native libraries without LD_PRELOAD
Sam Liddicott
sam at liddicott.com
Thu Dec 27 11:25:59 EST 2007
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"?
LD_PRELOAD=libusb.so
"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
Thanks
Sam
More information about the Mono-devel-list
mailing list