Re: Linkage problem with dylib
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jun 14, 2005, at 6:36 PM, Paul Beckingham wrote: Shantonu _______________________________________________ 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... I am running 10.4.1, and having a problem linking to libssl.dylib. Here is my code: Could someone tell me why I cannot link to /usr/lib/libssl.dylib (itself a symlink to libssl.0.9.7.dylib)? You're linking to it fine. The problem is that you're linking to the wrong library. This may be covered in the OpenSSL documentation. [shantonu@shantonu-sens-powerbook-g4-12]$ nm -g /usr/lib/libssl.dylib | grep _SHA1 [shantonu@shantonu-sens-powerbook-g4-12]$ nm -g /usr/lib/ libcrypto.dylib | grep _SHA1 U _SHA1_Final U _SHA1_Init U _SHA1_Update U _SHA1_Final U _SHA1_Init U _SHA1_Update U _SHA1_Final U _SHA1_Init U _SHA1_Update U _SHA1_Final U _SHA1_Init U _SHA1_Update 91a80968 T _PKCS5_PBKDF2_HMAC_SHA1 91a9357c T _SHA1 U _SHA1_Final U _SHA1_Init U _SHA1_Update 91a20780 T _SHA1_Final 91a1ec64 T _SHA1_Init 91a935f4 T _SHA1_Transform 91a1ecd0 T _SHA1_Update a1a24cbc D _SHA1_version [shantonu@shantonu-sens-powerbook-g4-12]$ g++ -o sample sample.cpp - lcrypto [shantonu@shantonu-sens-powerbook-g4-12]$ This email sent to site_archiver@lists.apple.com
participants (1)
-
Shantonu Sen