Dear Modem,
Thank you so much. Your instructions are so detailed and helpful for my code. As you said, I put the built dll files into the windows folders. Now, all the programs are running smoothly. I really appreciate your patient and kind help. Best Regards, Xiang > Date: Wed, 14 Apr 2010 22:32:27 +0200 > From: modem-...@gmx.net > To: openssl-users@openssl.org > Subject: Re: ERROR LINK2019 > > Hi 芦翔, > > the way Windows/C is using the SSL Lib here, is a so called "Dynamic > Link Library via IMPLIB loading". This means, each DLL file has a > corresponding LIB file which is statically to be linked together with > your source code's OBJ files to become your EXE file. But this LIB is > only a so called "stub", a library which does nothing else than being a > proxy/gateway between your code and the SSL's DLLs. > > As you can imagine now, your EXE already has the LIBEAY.LIB linked. > Your EXE is starting and before calling WinMain() / main() / _tmain() it > initializes own "startup code" and LIB's "startup code". > The latter now searches it's corresponding DLL file to make its job of > beeing the proxy. > And in your case, it reports not beeing able to locate this DLL. > > Looks like your application just don't know where to locate the LIBEAY.DLL. > 1st, you should know, where on your computer this particular file resides. > 2nd, you should learn, how your platform is searching for DLLs. > > Hint: > Search order within windows is: > 1st) current directory (usually, where your .EXE resides) > 2nd) each entry of %PATH% environment variable, from left to right. > > Finally, you could also read SSL package's INSTALL.W32 and ms\*.bat > files to learn how to skip DLL usage and how to to link complete .LIB > (not the small IMPLIB). This would be a so called "Static Library > without any DLL" linkage. > > And very finally, "inc32" might be the better include directory than > "include"? > Read _complete_ INSTALL.W32, to learn if this is true for your > environment, or not. > > Hoping you can also help me somewhen in future, > M.M. > > > > Dear Modem, > > Thank you for your instructions. I have overcomed the problem by > > putting "extern" in my code, and rebuild the openssl lib as your > > notes. I really appreciate the helps from you and Wiliam. > > Now, I can build my application. However, after building the > > application, it pops a message box, which says that "This application > > has failed to start because LIBEAY32.dll was not found. Re-installing > > the application may fix this problem." I don't know what happens. I am > > not sure if I need re-compile the openssl code for a dll file, in > > addition, how can I use the compiled dll file. Suggestions will be > > really appreciated. Thank you. > > > > Best Regards, > > Xiang > > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org _________________________________________________________________ SkyDrive电子画册,带你领略精彩照片,分享“美”时“美”刻! http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c