On Thu, Jan 11, 2001 at 10:08:24AM +0100, Lutz Jaenicke wrote:
> On Thu, Jan 11, 2001 at 09:13:12AM +0200, Alexey Prohorenko wrote:
> > green@pacific:~/SSL$ make
> > g++ -I/usr/local/ssl/include -o cli cli.cpp -L/usr/local/ssl/lib/libssl.a
>/usr/local/ssl/lib/libcrypto.a
>
> Read the manual of your compiler:
> g++ -I/usr/local/ssl/incluce -o cli cli.cpp -L/usr/local/ssl/lib -lssl -lcrypto
Thank you for your answer, but still...
green@pacific:~/SSL$ make
gcc -I/usr/local/ssl/include -o cli cli.cpp -L/usr/local/ssl/lib -lcrypto -lssl
cli.cpp: In function `int main(...)':
cli.cpp:82: warning: implicit declaration of function `int Free(...)'
cli.cpp:106: warning: implicit declaration of function `int close(...)'
/var/tmp/ccbu93501.o: In function `main':
/var/tmp/ccbu93501.o(.text+0x1fe): undefined reference to `Free'
/var/tmp/ccbu93501.o(.text+0x24e): undefined reference to `Free'
...
/usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
`SSL_CTX_use_certificate_chain_file':
ssl_rsa.o(.text+0x1392): undefined reference to `PEM_read_bio_X509'
ssl_rsa.o(.text+0x145a): undefined reference to `PEM_read_bio_X509'
/usr/local/ssl/lib/libssl.a(ssl_algs.o): In function `SSL_library_init':
ssl_algs.o(.text+0x1): undefined reference to `EVP_des_cbc'
ssl_algs.o(.text+0xc): undefined reference to `EVP_des_ede3_cbc'
ssl_algs.o(.text+0x17): undefined reference to `EVP_idea_cbc'
ssl_algs.o(.text+0x22): undefined reference to `EVP_rc4'
ssl_algs.o(.text+0x2d): undefined reference to `EVP_rc2_cbc'
ssl_algs.o(.text+0x38): undefined reference to `EVP_md2'
ssl_algs.o(.text+0x43): undefined reference to `EVP_md5'
ssl_algs.o(.text+0x98): undefined reference to `EVP_dss1'
/usr/local/ssl/lib/libssl.a(s3_both.o): In function `ssl3_output_cert_chain':
s3_both.o(.text+0x3a3): undefined reference to `X509_STORE_CTX_init'
s3_both.o(.text+0x43b): undefined reference to `X509_STORE_get_by_subject'
s3_both.o(.text+0x466): undefined reference to `X509_STORE_CTX_cleanup'
...
and about 2 more screens of such errors.
Any suggestions?
--
green
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]