Linker can't find library file but it's in my project
Linker can't find library file but it's in my project
- Subject: Linker can't find library file but it's in my project
- From: Rick Mann <email@hidden>
- Date: Sat, 17 Jun 2006 11:51:40 -0700
I get this error:
cd /Users/rmann/Projects/AVR/avarice/cvs/avarice/AVaRice
/usr/bin/g++-4.0 -o /Users/rmann/Projects/AVR/avarice/cvs/
avarice/AVaRice/build/Debug/AVaRice -L/Users/rmann/Projects/AVR/
avarice/cvs/avarice/AVaRice/build/Debug -L/usr/local/avr/i686-apple-
darwin8.6.1/avr/lib -F/Users/rmann/Projects/AVR/avarice/cvs/avarice/
AVaRice/build/Debug -filelist /Users/rmann/Projects/AVR/avarice/cvs/
avarice/AVaRice/build/AVaRice.build/Debug/AVaRice.build/Objects-
normal/i386/AVaRice.LinkFileList -lusb -lbfd -lusb -arch i386 -Wl,-Y,
1455 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: can't locate file for: -lusb
collect2: ld returned 1 exit status
But when I look at my project window, the library file is there.
First I had added libusb.dylib, but when that resulted in an error, I
added libusb.a. No good. I then removed libusb.dylib, still nothing.
Removing both results in a mass of link errors, so I know it's
linking against them. I don't understand why this error, then.
libusb.a lives in /usr/local/lib/libusb.a.
Any help would be greatly appreciated.
TIA,
--
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden