re: CFBundleGetFunctionPointerForName
re: CFBundleGetFunctionPointerForName
- Subject: re: CFBundleGetFunctionPointerForName
- From: George Warner <email@hidden>
- Date: Thu, 13 Mar 2008 11:30:38 -0700
- Thread-topic: CFBundleGetFunctionPointerForName
On Thu, 13 Mar 2008 16:38:27 +0200, Nava Carmon <email@hidden> wrote:
> 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.
Is it (re)exported from the bundle that links to that 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?
Nope; run "nm" against the bundle's dylb to see what symbols it's exporting.
Also watch out for name mangling; "model_call" may be mangled if it's being
exported by a C++(--) dylib.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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