• 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: "email@hidden" <email@hidden>
  • Date: Wed, 7 Jan 2009 10:03:55 +0000


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?

Hi Mark.

Thanks for the reply.

This my problem. I am only linking to the static Library.
I don't know where this run time bundle reference is coming from!

I imagine that the static library is not correctly linked somehow, but I cannot quite see where I have gone astray.

On 6 Jan 2009, at 23:59, Mark Wagner wrote:

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


--
Mark Wagner

Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




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

  • Prev by Date: Re: XCode - The Missing Features
  • Next by Date: Re: Static library confusion
  • Previous by thread: Re: Static library confusion
  • Next by thread: Re: Static library confusion
  • Index(es):
    • Date
    • Thread