• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Linkage problem with dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linkage problem with dylib


  • Subject: Re: Linkage problem with dylib
  • From: Shantonu Sen <email@hidden>
  • Date: Tue, 14 Jun 2005 19:47:07 -0700


On Jun 14, 2005, at 6:36 PM, Paul Beckingham wrote:

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]$


Shantonu
_______________________________________________
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


References: 
 >Linkage problem with dylib (From: Paul Beckingham <email@hidden>)

  • Prev by Date: Re: Linkage problem with dylib
  • Next by Date: Re: Darwin 8.0 on x86 and SMP (Dual CPU)
  • Previous by thread: Re: Linkage problem with dylib
  • Next by thread: Real-time thread issue
  • Index(es):
    • Date
    • Thread