site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter O'Gorman wrote: | | As an alternative to Jordan's suggestion, change calls to dlsym to: | if (NSIsSymbolNameDefined(sym)) dlsym(handle,symbol); It is amazing how I could forget the underscore here and remember it below. Above won't work. | void* my_dlsym(void* module,const char* symbol) { | ~ char* u_sym=NULL; | ~ void* address=NULL; | ~ int retCode= asprintf(&u_sym,"_%s",symbol); // ignoring error, naughty! Peter -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) iQCVAwUBQoPyp7iDAg3OZTLPAQKNPwQAnl3ebS3zQ3VFL7Ruub0X2RQOJikOqqtg 4vcFnolTCfyHQ+2vzGfpxfcKYpthZMA6sQ4LfDJaiu5hMtmsNEEuK8hHTLb6W3kl kn7Tys+/V9/2Ox1thnvFEGHANxv+0jGg30jEzzvd5SKQADDaxKONJeOmzZhBfW9L 3Km385JGb6Y= =1oeA -----END PGP SIGNATURE----- _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter O'Gorman