Re: Linkage problem with dylib
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) -----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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter O'Gorman