In message <[EMAIL PROTECTED]> on Tue, 23 Jul 2002 23:38:13 -0400, bob 
richard <[EMAIL PROTECTED]> said:

robertrichard> /home/bob/openssltest# gcc -lcrypto -lssl -L/usr/local/ssl/lib 
sign_test.c
robertrichard> /tmp/ccXUtNOj.o: In function `main':
robertrichard> /tmp/ccXUtNOj.o(.text+0x30): undefined reference to `RSA_sign'
robertrichard> collect2: ld returned 1 exit status
robertrichard> root:/home/bob/openssltest#

gcc, or rather ld (which is called by gcc when building the final
binary) processes it's arguments left to right.  This means it will
see -lcrypto and -lssl before it will see -L/usr/local/ssl/lib, so it
will probably find libcrypto and libssl in /usr/lib.  The following
command line will work better:

gcc sign_test.c -L/usr/local/ssl/lib -lssl -lcrypto 

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken  \ S-168 35  BROMMA  \ T: +46-8-26 52 47
                    \      SWEDEN       \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to