In message <[EMAIL PROTECTED]> on Wed, 1 Dec 2004 21:12:23 +0800 (CST), alan
alan <[EMAIL PROTECTED]> said:
wlx712> I just solved it,the command is:
wlx712> # gcc settime.c -lcrypto
wlx712> Who can tell me why and explain it?thanks
Well, when you just do the following:
gcc settime.c
you basically say that your program only depends on the standard C
library, nothing more. If you want to use other libraries as well,
you have to say so explicitely, because the compiler/linker will not
guess it for you. The flag -l{name} says that the compiler/linker
should link your program with the library `lib{name}.so' or
`lib{name}.a' (whichever is found first). Since BIO_write exists in
libcrypto.so or .a, you need to tell the compiler/linker that you want
to link your program with that library.
Cheers,
Richard
-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
--
Richard Levitte [EMAIL PROTECTED]
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]