• 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 locate file for library.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linker can't locate file for library.


  • Subject: Linker can't locate file for library.
  • From: Brant Sears <email@hidden>
  • Date: Fri, 9 Mar 2007 13:17:09 -0500

Hi. I recently received a library from a third party that I want to use in my application. This file appears to be a universal binary .a archive. It doesn't begin with "lib" - I'm not sure if this matters. The name of the file is vp7plugin_macUniv.a

I placed the file into a folder where other .a libraries that my application uses are located. Then, I added the library file to my application. When I try to build with it, I get a link error that says:

can't locate file for: -lvp7plugin_macUniv.a

In the terminal, I tried typing file vp7plugin_macUniv.a the result is:
vp7plugin_macUniv.a: Mach-O fat file with 2 architectures
vp7plugin_macUniv.a (for architecture i386): current ar archive random library
vp7plugin_macUniv.a (for architecture ppc): current ar archive


which is what I would expect.

What I'm surprised about is that the linker can't find the file. On the chance that the problem was that it didn't begin with "lib", I removed it from my project, then named it libvp7plugin_macUniv.a, then re-added it. This didn't change anything.

Any ideas on what is wrong?

Thanks.

Brant Sears
_______________________________________________
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 locate file for library.
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Copy Bundle Resources build phase questions
  • Next by Date: Re: Linker can't locate file for library.
  • Previous by thread: Re: Copy Bundle Resources build phase questions
  • Next by thread: Re: Linker can't locate file for library.
  • Index(es):
    • Date
    • Thread