Re: CFBundleGetFunctionPointerForName
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