Re: resolving back-links with dlopen
Re: resolving back-links with dlopen
- Subject: Re: resolving back-links with dlopen
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 24 Mar 2009 22:14:12 +0100
Le 24 mars 09 à 21:32, Mattias Holm a écrit :
Hi,
How do I load a .dylib file so that it resolves symbols in the
executable loading it. I have built my lib with "-undefined
dynamic_lookup", but I get errors like: dlopen(/Users/holm/Projects/
orbit/oo/build/x86-darwin/src/Open Orbit Debug.app/Contents/
Resources/plugins/libexamplePlugin.dylib, 6): Symbol not found:
_omNewClass
Are there any special flags to pass when building the executable or
the library so it finds the symbols from the executable file?
Code loaded at runtime should be a Bundle, not a Dynamic Library. You
should build it using the gcc's -bundle_loader option.
http://developer.apple.com/documentation/developertools/conceptual/XcodeBuildSystem/500-Linking/bs_linking.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden