Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with underscores



Well, thanks to some helpful insights from Peter I now have two solutions which I thought I'd share.

Solution 1 - use  NSLookupAndBindSymbol().

This looks beyond the specific module being looked at and considers the global address space. This means it will look for the definition in a dynamically linked libcrypto.dylib.

Solution 2 - Statically link with a libcrypto.a (built from the openssl source distro - though I had to run ranlib an additional time to get it to link correctly). This forces the symbols to actually be defined in the module being loaded and NSLookupSymbolInModule will find them.

In both cases underscores are needed everywhere :)

Sean
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.



References: 
 >Re: Trouble with underscores (From: Sean Hinde <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.