• 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: Static library confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static library confusion


  • Subject: Re: Static library confusion
  • From: "Mark Wagner" <email@hidden>
  • Date: Tue, 6 Jan 2009 15:59:24 -0800

On Tue, Jan 6, 2009 at 07:10, email@hidden
<email@hidden> wrote:
> MY GC app is required to link to a static library : libZonicKRM.a
> The library is documented to support GC apps.
>
> I have added the library to the project and linking proceeds okay.
> But when code in the library is called the console reports a dlopen() error
> - see below.
>
> Why is dlopen() being called at all?
>
> Running otool against the binary shows nothing obviously untoward.
> The binary image seems large enough that the static lib has been linked.
>
> Is this a naming clash? or just core ignorance?
>
> A demo app is supplied incorporating libZonicKRM.a and it runs okay, both
> for unmanaged and managed memory.
> The ld command lines for the faulty app and the working demo are below.
>
> Thanks in advance.
>
> Faulty app console report:
> =====================
> Error loading /Users/Jonathan/Library/Caches/Cleanup At
> Startup/uk.co.zonic.zonickrm/client_2836_1231252747/ZonicKRM.bundle/Contents/MacOS/ZonicKRM:
>  dlopen(/Users/Jonathan/Library/Caches/Cleanup At
> Startup/uk.co.zonic.zonickrm/client_2836_1231252747/ZonicKRM.bundle/Contents/MacOS/ZonicKRM,
> 262): no suitable image found.  Did find:
>        /Users/Jonathan/Library/Caches/Cleanup At
> Startup/uk.co.zonic.zonickrm/client_2836_1231252747/ZonicKRM.bundle/Contents/MacOS/ZonicKRM:
> GC capability mismatch

The error message indicates that your app is linked to a
"ZonicKRM.bundle" framework rather than being statically linked.  What
happens if you delete the bundle and re-link your application?

--
Mark Wagner
 _______________________________________________
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: Static library confusion
      • From: "email@hidden" <email@hidden>
References: 
 >Static library confusion (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Having trouble with -dylib_file
  • Next by Date: Re: Instruments runs forever
  • Previous by thread: Static library confusion
  • Next by thread: Re: Static library confusion
  • Index(es):
    • Date
    • Thread