This is the mail archive of the
mailing list for the Cygwin project.
How to use openssl in cygwin
- From: "cxf" <chenxiaof at is dot iscas dot ac dot cn>
- To: <cygwin at cygwin dot com>
- Date: Mon, 5 Jun 2006 15:35:35 +0800
- Subject: How to use openssl in cygwin
I installed the Cygwin which is the Full version.
I write the Program as the following:
unsigned int result_size;
rv = EVP_SignInit(&md_ctx, EVP_sha1());
It is very simple,then I compile the program using the Cygwin(the
file name is example.c)
gcc -c example.c
gcc -lcrypto -o example example.o
but the gcc give out the error:
undefined reference to '_EVP_sha1'
undefined reference to '_EVP_DigestInit'
I have checked that the libcrypto.a is in the right way.
I doubt whether the libcrypto.a have the function: EVP_sha1 and
(I compile the example.c in Linux,It is OK!)
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html