Re: C-library and framework
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