I built CryptoPP into a DLL on Solaris after I changed the makefiles a little bit, and 
it worked fine (but I only used DES/SHA1 stuff, not many). On RedHat 8.0, I can only 
build DEBUG version DLL.

I am curious why CryptoPP has to use socket stuff.

Yanmu Huang


-----Original Message-----
From: Wei Dai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: LINK error(s) when trying to build a dll in vis studio .net
2003


Crypto++ was not designed to be compile directly into a DLL. Doing so
would give you a rather large DLL that includes all of the algorithms,
rather than just the ones you need. Also, there are no "export"  
directives in Crypto++, and therefore you won't be able to use the
resulting DLL even if you got it compiled.

On Mon, Jun 09, 2003 at 03:23:12PM -0700, Thomas L wrote:
> Greetings,
> 
> I seem to be getting a listing of 25 link errors whilst
> trying to build crypto 51 as a dll in visual studio .net
> 2003.
> 
> I built the static lib fine [well, fine after i realized a
> patch was necessary and made the changes lol] along with
> the test executable.
> 
> It seems the linker is complaining mostly about Socket
> class functions ::
> 
> crypto511dll error LNK2019: unresolved external symbol
> [EMAIL PROTECTED] referenced in function "public: void
> __thiscall CryptoPP::Socket::Create(int)"
> ([EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED])
> 
> crypto511dll error LNK2019: unresolved external symbol
> [EMAIL PROTECTED] referenced in function "public: void
> __thiscall CryptoPP::Socket::CloseSocket(void)"
> ([EMAIL PROTECTED]@CryptoPP@@QAEXXZ)
> 
> crypto511dll error LNK2019: unresolved external symbol
> [EMAIL PROTECTED] referenced in function "public: void
> __thiscall CryptoPP::Socket::Bind(struct sockaddr const
> *,int)" ([EMAIL PROTECTED]@CryptoPP@@QAEXPBUsockaddr@@[EMAIL PROTECTED])
> 
> etc etc etc...
> 
> So, my main question is can anyone help me to compile (well
> link at this point lol everything compiles fine lol)
> crypto51 as a dll in visual studio .net 2003??
> 
> Is the compiler deficient and there is a workaround anyone
> can proffer off the top of their head? 
> 
> c++ya,
> tomas
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com

Reply via email to