• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Linker can't find library file but it's in my project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Linker can't find library file but it's in my project
      • From: Scott Tooker <email@hidden>
  • Prev by Date: NSThread in Debug mode loading code issue
  • Next by Date: Customizing Xcode for PHP development?
  • Previous by thread: Re: NSThread in Debug mode loading code issue
  • Next by thread: Re: Linker can't find library file but it's in my project
  • Index(es):
    • Date
    • Thread