• 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
Re: C-library and framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-library and framework


  • Subject: Re: C-library and framework
  • From: Finlay Dobbie <email@hidden>
  • Date: Wed, 27 Oct 2004 12:38:56 +0100

On Wed, 27 Oct 2004 13:34:41 +0200, Don Willems <email@hidden> wrote:
> >> Is there a way to include the library in the framework without needing
> >> to add the library separately to the application??
> >
> > Add a copy files build phase that puts the C library into the
> > framework.
>
> Well, I did that. The problem is that the application cannot find the
> library. I think this is because the library ends up in
> @executable_path/Frameworks/MyFramework/Frameworks/MyCLibrary.a. And it
> expects it in @executable_path/Frameworks.

If it's a static library it should be statically linked in. Are you
sure you're linking against the static variant? The linker will
preferentially try and link against the dynamic version of any given
library if it exists, see several discussions recently on xcode-users
and elsewhere for suggested solutions.

-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: C-library and framework
      • From: Don Willems <email@hidden>
References: 
 >C-library and framework (From: Don Willems <email@hidden>)
 >Re: C-library and framework (From: AndrĂ©as Saudemont <email@hidden>)
 >Re: C-library and framework (From: Don Willems <email@hidden>)

  • Prev by Date: Re: C-library and framework
  • Next by Date: Re: Preference Pane
  • Previous by thread: Re: C-library and framework
  • Next by thread: Re: C-library and framework
  • Index(es):
    • Date
    • Thread