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

Re: CFBundleGetFunctionPointerForName


  • Subject: Re: CFBundleGetFunctionPointerForName
  • From: "Sherm Pendley" <email@hidden>
  • Date: Thu, 13 Mar 2008 12:09:27 -0400

On Thu, Mar 13, 2008 at 10:38 AM, Nava Carmon <email@hidden> wrote:
Hi All,

I have some bundle, that links with a static library. My application loads that bundle and looks for an entry point: 
  
          modelEntry = reinterpret_cast<ModelEntryProc>(CFBundleGetFunctionPointerForName(modelBundle,CFSTR("model_call")));

The function model_call is defined and declared in the static library. I tried almost everything to get my application see this symbol, but no success. The question is if it's possible at all? May be I misinterpret the CFBundleGetFunctionPointerForName usage?

In my experience, CFBundleGetFunctionPointerForName wants symbols to be prefixed with an underscore - that is, _model_call. They're stored that way in the binary (it's a C thing) and the function doesn't appear to add it for you before searching.

sherm--
 _______________________________________________
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: CFBundleGetFunctionPointerForName
      • From: Steve Checkoway <email@hidden>
    • Re: CFBundleGetFunctionPointerForName
      • From: Nava Carmon <email@hidden>
References: 
 >CFBundleGetFunctionPointerForName (From: Nava Carmon <email@hidden>)

  • Prev by Date: C++ specialized template and multiple time defined symbols
  • Next by Date: xcodebuild load error
  • Previous by thread: CFBundleGetFunctionPointerForName
  • Next by thread: Re: CFBundleGetFunctionPointerForName
  • Index(es):
    • Date
    • Thread