From: Charles L. <cl...@gh...> - 2004-08-19 15:09:53
|
Peter Stuge said: > On Thu, Aug 19, 2004 at 01:54:51PM +0100, Paulo Tribolet Abreu wrote: >> Hi: >> >> I can compile libusb 0.1.8 under MacOSX 10.3.4. However, when I try to >> use the library with "-lusb" I get: >> >> ld: /Volumes/Local/Users/paulo/lib/libusb.a(darwin.o) illegal referenc= e >> to symbol: _IODestroyPlugInInterface defined in indirectly referenced >> dynamic library >> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit >> make: *** [SQ905] Error 1 > > Try -lusb -lIOkit -framework CoreFoundation In general, if a package provides a <name>-config program or pkgconfig (*.pc) files, it's best to use them. (I'm guessing that's what Peter did.= ) In the case of libusb, you should get the linker flags from "libusb-confi= g --libs" (similarly for the includes: "libusb-config --cflags"). If you're not sure how to integrate this into your build process, check how other packages do it. --=20 Charles Lepple cl...@gh... |