change ur option to cc  -I/home/wenwen/openssl-0.9.6/include -o cli cli.o /home/wenwen/openssl-0.9.6/libssl.a /home/wenwen/openssl-0.9.6/libcrypto.a 
 
 
It should work. U give -L option only to give path for a shared library. and "xxx.a" is a static library.
-----Original Message-----
From: wenwen-unitop [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 09, 2001 2:59 PM
To: [EMAIL PROTECTED]
Subject: No Library Found!

hi:
    when i compiled /openssl-0.9.6/demos/ssl/cli serv
    it just say:
    is there any library lost?
 
cc  -I/home/wenwen/openssl-0.9.6/include -o cli cli.o -L/home/wenwen/openssl-0.9.6/libssl.a -L/home/wenwen/openssl-0.9.6/libcrypto.a    
cli.o: In function `main':
cli.o(.text+0xa): undefined reference to `SSL_library_init'
cli.o(.text+0xf): undefined reference to `SSLv2_client_method'
cli.o(.text+0x1c): undefined reference to `SSL_load_error_strings'
cli.o(.text+0x28): undefined reference to `SSL_CTX_new'
cli.o(.text+0x51): undefined reference to `ERR_print_errors_fp'
cli.o(.text+0x106): undefined reference to `SSL_new'
cli.o(.text+0x12b): undefined reference to `SSL_set_fd'
cli.o(.text+0x137): undefined reference to `SSL_connect'
cli.o(.text+0x150): undefined reference to `ERR_print_errors_fp'
cli.o(.text+0x166): undefined reference to `SSL_get_current_cipher'
cli.o(.text+0x171): undefined reference to `SSL_CIPHER_get_name'
cli.o(.text+0x18d): undefined reference to `SSL_get_peer_certificate'
cli.o(.text+0x1c6): undefined reference to `X509_get_subject_name'
cli.o(.text+0x1d1): undefined reference to `X509_NAME_oneline'
cli.o(.text+0x206): undefined reference to `Free'
cli.o(.text+0x216): undefined reference to `X509_get_issuer_name'
cli.o(.text+0x221): undefined reference to `X509_NAME_oneline'
cli.o(.text+0x256): undefined reference to `Free'
cli.o(.text+0x262): undefined reference to `X509_free'
cli.o(.text+0x283): undefined reference to `SSL_write'
cli.o(.text+0x29c): undefined reference to `ERR_print_errors_fp'
cli.o(.text+0x2c1): undefined reference to `SSL_read'
cli.o(.text+0x2da): undefined reference to `ERR_print_errors_fp'
cli.o(.text+0x31a): undefined reference to `SSL_shutdown'
cli.o(.text+0x332): undefined reference to `SSL_free'
cli.o(.text+0x33e): undefined reference to `SSL_CTX_free'
collect2: ld returned 1 exit status
make: *** [cli] Error 1

*******************Confidential Notice********************


This e-mail communication may contain information that is

confidential and privileged. The information is intended

to be for the use of the addressee only. If you are not the

named addressee you should not disseminate, distribute or

copy this e-mail: to do so could be a breach of confidence.


Kshema Technologies Ltd.,

# 1, Global Village, Mylasandra,

Mysore Road, Bangalore 560059, INDIA.

Tel: (91)-80-8603600-17

Fax: (91)-80-8603372


**********************************************************

Reply via email to