How to Create Static library or dll file not depending on cygwin's dll

cxf chenxiaof@is.iscas.ac.cn
Thu Jun 22 11:22:00 GMT 2006


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/



More information about the Cygwin mailing list