Hi Qadeer,

I just went through the exercise of building the openssl libraries for Win32 and for the Mac. I also built and installed libxml, libxslt, and xmlsec. This matters because xmlsec links against openssl.

I discovered that the generated makefiles for Win32 hard code /MD into the compiler flags. This causes the link with your program to want the DLL runtime. (Note your error messages that mention dllimport.) I ran into all sorts of problems with the xmlsec link until I fixed this.

I think that you can fix your problem if you edit ms\nt.mak after you run the configure. Find the line that begins with:
CFLAG= /MD

Change the /MD to something better, like /MT (multithreaded using LIBCMT.lib) or /ML (single threaded using LIBC.lib). Whatever you choose here must be the same as what you use for your program that links against this library.

Now run the make and the install and try linking to your program.

I hope this helps.

- Rush

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to