• 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: "Peter O'Gorman" <email@hidden>
  • Date: Wed, 15 Jun 2005 10:46:58 +0900

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Beckingham wrote:

| % make -f sample.make
| g++ sample.o -lssl -o sample
| /usr/bin/ld: Undefined symbols:
| _SHA1
| collect2: ld returned 1 exit status
| make: *** [../bin/sample] Error 1
|
Add -lcrypto, or simply replace -lssl with -lcrypto, _SHA1 is defined in
libcrypto, not libssl.

On 10.3 ld helpfully tells you:
ld: sample.o illegal reference to symbol: _SHA1 defined in indirectly
referenced dynamic library /usr/lib/libcrypto.0.9.7.dylib

But the error seems to have become less helpful.

Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQq+IkriDAg3OZTLPAQLFJgQAoV+lG+rksXLVJARfgneCrmPKzMzl2T1b
VY7Oe3RZicqOi4/bvZKcIQeHaXAfDzUu9mNfjxLHvC3kx08tmRhWRVCLW13nnwBW
ShE9yf0O/mQLD/2bvMo951RftnD8/b0PwyXAeykMx9AMWGgTJPJnNRpxzJX8gOvO
gjC1pF0WouE=
=FQn4
-----END PGP SIGNATURE-----
_______________________________________________
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: Linkage problem with dylib
  • Next by Date: Re: Linkage problem with dylib
  • Previous by thread: Linkage problem with dylib
  • Next by thread: Re: Linkage problem with dylib
  • Index(es):
    • Date
    • Thread