If you're compiling Crypto++ source files directly into your own application instead of linking with the library, you need to enable intrinsics in your project settings. The setting is on the C/C++ optimizations page.
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 21, 2007 10:19 AM Subject: __emulu in integer.cpp for the CVS code on VS2005 > > Hi Wei and everyone, > > I downloaded the latest CVS code and built my app with it (I use Crypto++ > without building it). > It's on VC8 (VS2005) with SP1 + STLport 5.1. I added cpu.cpp and modified > my code to include > Weak:: etc. to accomodate it to the new Crypto++, but at the final link > stage I got the following > error. > > integer.obj : error LNK2019: unresolved external symbol ___emulu > referenced in function "void __cdecl CryptoPP::Baseline_Multiply2(unsigned > int *,unsigned int const *,unsigned int const *)" > ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) > > Apparently __emulu couldn't be found by VC++ so I modified the relevant > part of integer.cpp like this: > > #define Declare2Words(x) dword x; > //#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER) > // #define MultiplyWords(p, a, b) p = __emulu(a, b); > //#else > #define MultiplyWords(p, a, b) p = (dword)a*b; > //#endif > #define AssignWord(a, b) a = b; > > then it links fine. Any idea for why it happens and a better fix for this? > > Thanks in advance. > > > sword > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [EMAIL PROTECTED] More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
