I have a DLL that relies on the OpenSSL library, which comes in two dlls:
libeay32.dll and ssleay32.dll. Since a lot of the users of my DLL never use
SSL at all, I was hoping I could delay-load these libraries.
I added /delayload:"libeay32.dll" and /delayload:"ssleay32.dll" to the
linker command line(well, I added it in the IDE, but whatever), then tried
to rebuild my DLL. I then get this linker error :
libneonD.lib(SSLEAY32.dll) : error LNK2001: unresolved external symbol
__tailMerge_SSLEAY32
That line is repeated 30 times. libneonD.lib is a static library I'm linking
to, which relies on OpenSSL.
Of course, the error goes away if I don't attempt to delay load it. Also, if
I just remove /delayload:ssleay32.dll and leave /delayload:libeay32.dll in,
it works fine.
Does this error message ring a bell with anyone? I am using VC++2003
Professional.
--
AnkhSVN - A Visual Studio .NET Addin for the Subversion version control
system.
http://ankhsvn.tigris.org