Re: Linkage problem with dylib
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