Re: resolving back-links with dlopen
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Le 24 mars 09 à 21:32, Mattias Holm a écrit : Hi, http://developer.apple.com/documentation/developertools/conceptual/XcodeBuil... _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jean-Daniel Dupas