Hi Nguyen, Are you using a third party STL? Also, you need the multi threaded crt library.
If you are correct on those, I would look at whether you are using the cryptlib (vs the dll). I have no time with .NET/2003, etc. Jeff Quoting Son Nguyen <[EMAIL PROTECTED]>: > Dear all, > > I've been reading the mailing list archive, try to get started > building a RSA public key encryption using crypto++. I compile the > origininal Crypto++ 5.2.1 library, and successfully generate the 2048 > bits public + private keys. And successfully encrypt & decrypt a > String. :) Anybody can do this easy job, isn't it? :) > > Then I begin to incorporate crypto++ into my current project. And I > begin getting problem. I follow the direction from > http://www.codeguru.com/Cpp/Cpp/algorithms/general/article.php/c5133/ > try to get started It does not work with files with my current project. > > Then, I tried to download the source from the dirtypad project. And > add the link to "Include Files", "Source", and "Library" just as > mention in the article. I encounter many errors. I did try to look up > people having problem with the crypto++ library and the DirtyPad > project. However, none of the solution suggested in the Mailing List > solve the link error. I am using MS Visual Studio .NET 2003 to compile > the DirtyPad project. > > Can somebody please give some hints on how to startup using crypto++ > library to build up a RSA algorithm in an independent project > development? > > > Son Nguyen > --------------------------------------------------- > NOTE: These are the following errors I got while compiling the DirtyPad > project > > Compiling... > StdAfx.cpp > WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET > Server) > Compiling... > MainFrm.cpp > dirtypadView.cpp > c:\Code Examples\dirtypad\dirtypadView.cpp(55) : warning C4100: 'pDC' : > unreferenced formal parameter > dirtypadDoc.cpp > dirtypad.cpp > c:\Code Examples\dirtypad\dirtypad.cpp(58) : warning C4996: > 'CWinApp::Enable3dControls' was declared deprecated > c:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\atlmfc\include\afxwin.h(4369) : see declaration of > 'CWinApp::Enable3dControls' > Generating Code... > Compiling resources... > Linking... > LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to > '/INCREMENTAL:NO' specification > dirtypad.obj : warning LNK4217: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED] > (public: __thiscall std::basic_string,class std::allocator > >::~basic_string,class std::allocator >(void)) imported in function > "class std::basic_string,class std::allocator > __cdecl > std::operator+,class std::allocator >(class std::basic_string,class > std::allocator > const &,class std::basic_string,class std::allocator > > const &)" > ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@[EMAIL PROTECTED] [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) > dirtypadDoc.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED] > (public: __thiscall std::basic_string,class std::allocator > >::~basic_string,class std::allocator >(void)) imported > dirtypadView.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED] > (public: __thiscall std::basic_string,class std::allocator > >::~basic_string,class std::allocator >(void)) imported > dirtypad.obj : warning LNK4217: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z > (public: class std::basic_string,class std::allocator > & __thiscall > std::basic_string,class std::allocator >::operator+=(class > std::basic_string,class std::allocator > const &)) imported in function > "class std::basic_string,class std::allocator > __cdecl > std::operator+,class std::allocator >(class std::basic_string,class > std::allocator > const &,class std::basic_string,class std::allocator > > const &)" > ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@[EMAIL PROTECTED] [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) > dirtypadDoc.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z > (public: class std::basic_string,class std::allocator > & __thiscall > std::basic_string,class std::allocator >::operator+=(class > std::basic_string,class std::allocator > const &)) imported > dirtypadView.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z > (public: class std::basic_string,class std::allocator > & __thiscall > std::basic_string,class std::allocator >::operator+=(class > std::basic_string,class std::allocator > const &)) imported > dirtypad.obj : warning LNK4217: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED]@@Z > (public: __thiscall std::basic_string,class std::allocator > >::basic_string,class std::allocator >(class std::basic_string,class > std::allocator > const &)) imported in function "class > std::basic_string,class std::allocator > __cdecl std::operator+,class > std::allocator >(class std::basic_string,class std::allocator > const > &,class std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@[EMAIL PROTECTED] [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) > dirtypadDoc.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED]@@Z > (public: __thiscall std::basic_string,class std::allocator > >::basic_string,class std::allocator >(class std::basic_string,class > std::allocator > const &)) imported > dirtypadView.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED]@@Z > (public: __thiscall std::basic_string,class std::allocator > >::basic_string,class std::allocator >(class std::basic_string,class > std::allocator > const &)) imported > dirtypad.obj : warning LNK4217: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED]@Z > (public: __thiscall std::basic_string,class std::allocator > >::basic_string,class std::allocator >(char const *)) imported in > function "class std::basic_string,class std::allocator > __cdecl > std::operator+,class std::allocator >(char const *,class > std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@[EMAIL PROTECTED] [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@@Z) > dirtypadDoc.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED]@Z > (public: __thiscall std::basic_string,class std::allocator > >::basic_string,class std::allocator >(char const *)) imported > dirtypadView.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL > PROTECTED]@Z > (public: __thiscall std::basic_string,class std::allocator > >::basic_string,class std::allocator >(char const *)) imported > ............... > > These error are for WARNING. These lines below are REAL ERRORS :) > > dirtypad.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@A (public: static > class std::locale::id > std::ctype::id) imported > dirtypadDoc.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@A (public: static > class std::locale::id > std::ctype::id) imported > dirtypadView.obj : warning LNK4049: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@A (public: static > class std::locale::id > std::ctype::id) imported > dirtypadDoc.obj : warning LNK4217: locally defined symbol > [EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@QBEPBDXZ > (public: char const * __thiscall std::basic_string,class std::allocator > >::c_str(void)const ) imported in function "public: virtual char const > * __thiscall CryptoPP::Exception::what(void)const " > ([EMAIL PROTECTED]@CryptoPP@@UBEPBDXZ) > dirtypad.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: __thiscall std::basic_string,class > std::allocator >::~basic_string,class std::allocator >(void)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) > referenced in function "class std::basic_string,class std::allocator > > __cdecl std::operator+,class std::allocator >(class > std::basic_string,class std::allocator > const &,class > std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@[EMAIL PROTECTED] [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) > dirtypadDoc.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: __thiscall std::basic_string,class > std::allocator >::~basic_string,class std::allocator >(void)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) > dirtypadView.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: __thiscall std::basic_string,class > std::allocator >::~basic_string,class std::allocator >(void)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) > dirtypad.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: class std::basic_string,class > std::allocator > & __thiscall std::basic_string,class std::allocator > >::operator+=(class std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z) > referenced in function "class std::basic_string,class std::allocator > > __cdecl std::operator+,class std::allocator >(class > std::basic_string,class std::allocator > const &,class > std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@[EMAIL PROTECTED] [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) > dirtypadDoc.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: class std::basic_string,class > std::allocator > & __thiscall std::basic_string,class std::allocator > >::operator+=(class std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z) > dirtypadView.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: class std::basic_string,class > std::allocator > & __thiscall std::basic_string,class std::allocator > >::operator+=(class std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z) > dirtypad.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: __thiscall std::basic_string,class > std::allocator >::basic_string,class std::allocator >(class > std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z) > referenced in function "class std::basic_string,class std::allocator > > __cdecl std::operator+,class std::allocator >(class > std::basic_string,class std::allocator > const &,class > std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@[EMAIL PROTECTED] [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) > dirtypadDoc.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: __thiscall std::basic_string,class > std::allocator >::basic_string,class std::allocator >(class > std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z) > dirtypadView.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: __thiscall std::basic_string,class > std::allocator >::basic_string,class std::allocator >(class > std::basic_string,class std::allocator > const &)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@V? [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@Z) > > ......... > > dirtypad.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: void __thiscall std::basic_ostream > >::_Osfx(void)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@QAEXXZ) > referenced in function "public: __thiscall std::basic_ostream > >::sentry::~sentry(void)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@[EMAIL PROTECTED]) > dirtypadDoc.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: void __thiscall std::basic_ostream > >::_Osfx(void)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@QAEXXZ) > dirtypadView.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: void __thiscall std::basic_ostream > >::_Osfx(void)" > ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@QAEXXZ) > .\Debug/dirtypad.exe : fatal error LNK1120: 35 unresolved externals > > > > > __________________________________ > Start your day with Yahoo! - Make it your home page! > http://www.yahoo.com/r/hs > ___________________________________________________________ This mail sent using ToadMail -- Web based e-mail @ ToadNet
