Thanks for the follow-up.  I, too, hope the fix becomes permanent.
 
Dave


From: David Hauck [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 11:44 AM
To: [email protected]
Subject: RE: CPP 5.2 and MFC link errors

Hi Dave, see my follow-up in: http://www.mail-archive.com/[email protected]/msg02085.html. The tip corrects these errors. -David
-----Original Message-----
From: Freer, Dave [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 5:55 AM
To: [email protected]
Subject: RE: CPP 5.2 and MFC link errors

Thanks for the response.  This is sort of the conclusion that I have come to.  So, I revert to 4.2 rather than change my project.  The response from David Hauck raises a good question:
 
"...why it is that crypto++ requires referencing projects to be built with the non-standard __stdcall calling convention. It would be better if the crypto API explicitly qualified its definitions with the _stdcall calling convention keyword so that API users could continue to use the default calling convention in their project builds (for e.g., this restriction currently prevents us from referencing/using other APIs - that rely on the default calling convention - in the same project)."
 
Regards,
 
Dave


From: Wei Dai [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 12:13 AM
To: [email protected]
Subject: Re: CPP 5.2 and MFC link errors

This looks like the same type of error mentioned in http://www.mail-archive.com/[email protected]/msg02084.html. Have you read that post?
----- Original Message -----
Sent: Monday, April 11, 2005 2:47 PM
Subject: CPP 5.2 and MFC link errors

I have a simple MFC application (built with VS .NET 2003 & Cryptopp 5.2.1) that links and runs fine under debug mode but produces many link errors in release mode.  Both the release and debug DLL seem to build fine so I do not expect a problem there.  Are there any significant issues in using the library with MFC?
 
Thanks in advance.
 
 

Linking...

Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl CryptoPP::BaseN_Decoder::InitializeDecodingLookupArray(int *,unsigned char const *,unsigned int,bool)" ([EMAIL PROTECTED]@CryptoPP@@[EMAIL PROTECTED]) referenced in function "private: static int const * __cdecl CryptoPP::Base64Decoder::GetDecodingLookupArray(void)" ([EMAIL PROTECTED]@CryptoPP@@CAPBHXZ)

Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl CryptoPP::NameValuePairs::ThrowIfTypeMismatch(char const *,class type_info const &,class type_info const &)" ([EMAIL PROTECTED]@CryptoPP@@SAXPBDABVtype_info@@[EMAIL PROTECTED]) referenced in function "public: virtual void __thiscall CryptoPP::AlgorithmParametersBase2<int>::AssignValue(char const *,class type_info const &,void *)const " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@UBEXPBDABVtype_info@@[EMAIL PROTECTED])

Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool (__cdecl* CryptoPP::AssignIntToInteger)(class type_info const &,void *,void const *)" ([EMAIL PROTECTED]@@3P6A_NABVtype_info@@[EMAIL PROTECTED]) referenced in function "public: virtual void __thiscall CryptoPP::AlgorithmParametersBase2<int>::AssignValue(char const *,class type_info const &,void *)const " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@UBEXPBDABVtype_info@@[EMAIL PROTECTED])

Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static char const * __cdecl CryptoPP::SHA::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@CryptoPP@@SAPBDXZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CryptoPP::HMAC<class CryptoPP::SHA>::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@@CryptoPP@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@XZ)

Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static char const * __cdecl CryptoPP::CBC_ModeBase::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@CryptoPP@@SAPBDXZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CryptoPP::CipherModeFinalTemplate_CipherHolder<class CryptoPP::BlockCipherFinal<1,class CryptoPP::Rijndael::Dec>,class CryptoPP::CBC_Decryption>::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@CryptoPP@@[EMAIL PROTECTED]@@CryptoPP@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@XZ)

Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CryptoPP::AlgorithmImpl<class CryptoPP::SimpleKeyingInterfaceImpl<class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::Rijndael_Info>,class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::Rijndael_Info> >,class CryptoPP::SimpleKeyingInterfaceImpl<class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::Rijndael_Info>,class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::Rijndael_Info> > >::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@CryptoPP@@@CryptoPP@@[EMAIL PROTECTED]@@CryptoPP@@V12@@CryptoPP@@V12@@CryptoPP@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@XZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CryptoPP::CipherModeFinalTemplate_CipherHolder<class CryptoPP::BlockCipherFinal<1,class CryptoPP::Rijndael::Dec>,class CryptoPP::CBC_Decryption>::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@CryptoPP@@[EMAIL PROTECTED]@@CryptoPP@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@XZ)

Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CryptoPP::AlgorithmImpl<class CryptoPP::SimpleKeyingInterfaceImpl<class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::DES_EDE2_Info>,class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::DES_EDE2_Info> >,class CryptoPP::SimpleKeyingInterfaceImpl<class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::DES_EDE2_Info>,class CryptoPP::TwoBases<class CryptoPP::SimpleKeyedTransformation<class CryptoPP::BlockTransformation>,struct CryptoPP::DES_EDE2_Info> > >::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@CryptoPP@@@CryptoPP@@[EMAIL PROTECTED]@@CryptoPP@@V12@@CryptoPP@@V12@@CryptoPP@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@XZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CryptoPP::CipherModeFinalTemplate_CipherHolder<class CryptoPP::BlockCipherFinal<1,class CryptoPP::DES_EDE2::Base>,class CryptoPP::CBC_Decryption>::StaticAlgorithmName(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@CryptoPP@@[EMAIL PROTECTED]@@CryptoPP@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@XZ)

 
I have spent hours trying different combinations with no luck at all.  Is there something simple that I am missing?
 
Dave Freer
Andrew Corporation
(434) 386-5250
 

------------------------------------------------------------------------------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.
If you have received it in error, please notify the sender
immediately and delete the original. Any unauthorized use of
this email is prohibited.
------------------------------------------------------------------------------------------------
[mf2]

------------------------------------------------------------------------------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.
If you have received it in error, please notify the sender
immediately and delete the original. Any unauthorized use of
this email is prohibited.
------------------------------------------------------------------------------------------------
[mf2]

------------------------------------------------------------------------------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.
If you have received it in error, please notify the sender
immediately and delete the original. Any unauthorized use of
this email is prohibited.
------------------------------------------------------------------------------------------------
[mf2]

Reply via email to