This is the mail archive of the
cygwin
mailing list for the Cygwin project.
How to Create Static library or dll file not depending on cygwin's dll
- From: "cxf" <chenxiaof at is dot iscas dot ac dot cn>
- To: "cygwin" <cygwin at cygwin dot com>
- Date: Thu, 22 Jun 2006 16:04:03 +0800
- Subject: How to Create Static library or dll file not depending on cygwin's dll
I have a source file "crypto.c",in this file I use the functions which
in openssl library.
So I compile the file with the following command
gcc -c crypto.c
gcc -shared -mno-cygwin -o crypto.dll crypto.o -lcrypto
But the compiled dll file "crypto.dll" depends on the
cygcrypto-0.9.8.dll, can I have any methods compile a dll file not
depending on the cygcrypto-0.9.8.dll.
Another question:
I want compile the static library,so using the following command :
gcc -c crypto.c
gcc -static -o crypto.lib crypto.o -lcrypto.
That will give a error. how to compile the static library?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/