hi all

i have some problem... i have successfully run my code that has been build so 
far in MSVS2003 envoirnment. my remaining project is build using MSVS2005 
envoirnment, now i want to marge my crypto++ code with my orignal project (in 
MSVS 2005) but i have face some errors even on some instentiation like

#include "stdafx.h"
#include "sha.h"

using namespace CryptoPP;

int _tmain(int argc, _TCHAR* argv[])
{
        SHA s;
/*
    byte Data[128];
    byte dg[20];

    for( int i = 0; i < 128; i++ )
    {
        Data[ i ] = i;
    }
    p->CalculateDigest((byte*)dg, (byte*)Data, 128 );
*/


        return 0;
}


the errors are like:

------ Build started: Project: delthis, Configuration: Debug Win32 ------
Linking...
cryptlibD.lib(filters.obj) : error LNK2001: unresolved external 
symbol "__declspec(dllimport) public: char const * __thiscall type_info::name
(void)const " ([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(hex.obj) : error LNK2001: unresolved external symbol "__declspec
(dllimport) public: char const * __thiscall type_info::name(void)const " 
([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(nbtheory.obj) : error LNK2001: unresolved external 
symbol "__declspec(dllimport) public: char const * __thiscall type_info::name
(void)const " ([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(dsa.obj) : error LNK2001: unresolved external symbol "__declspec
(dllimport) public: char const * __thiscall type_info::name(void)const " 
([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(ecp.obj) : error LNK2001: unresolved external symbol "__declspec
(dllimport) public: char const * __thiscall type_info::name(void)const " 
([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(ec2n.obj) : error LNK2001: unresolved external symbol "__declspec
(dllimport) public: char const * __thiscall type_info::name(void)const " 
([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(gfpcrypt.obj) : error LNK2001: unresolved external 
symbol "__declspec(dllimport) public: char const * __thiscall type_info::name
(void)const " ([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(algparam.obj) : error LNK2001: unresolved external 
symbol "__declspec(dllimport) public: char const * __thiscall type_info::name
(void)const " ([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(dll.obj) : error LNK2019: unresolved external symbol "__declspec
(dllimport) public: char const * __thiscall type_info::name(void)const " 
([EMAIL PROTECTED]@@QBEPBDXZ) referenced in function "public: class 
CryptoPP::GetValueHelperClass<class 
CryptoPP::DL_GroupParameters_IntegerBasedImpl<class 
CryptoPP::ModExpPrecomputation,class 
CryptoPP::DL_FixedBasePrecomputationImpl<class CryptoPP::Integer> >,class 
CryptoPP::DL_GroupParameters_IntegerBased> & __thiscall 
CryptoPP::GetValueHelperClass<class 
CryptoPP::DL_GroupParameters_IntegerBasedImpl<class 
CryptoPP::ModExpPrecomputation,class 
CryptoPP::DL_FixedBasePrecomputationImpl<class CryptoPP::Integer> >,class 
CryptoPP::DL_GroupParameters_IntegerBased>::Assignable(void)" ([EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@CryptoPP@@V?
[EMAIL PROTECTED]@CryptoPP@@@2@@CryptoPP@@VDL_GroupParame
[EMAIL PROTECTED]@@CryptoPP@@[EMAIL PROTECTED])
cryptlibD.lib(cryptlib.obj) : error LNK2001: unresolved external 
symbol "__declspec(dllimport) public: char const * __thiscall type_info::name
(void)const " ([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(gf2n.obj) : error LNK2001: unresolved external symbol "__declspec
(dllimport) public: char const * __thiscall type_info::name(void)const " 
([EMAIL PROTECTED]@@QBEPBDXZ)
cryptlibD.lib(integer.obj) : error LNK2001: unresolved external 
symbol "__declspec(dllimport) public: char const * __thiscall type_info::name
(void)const " ([EMAIL PROTECTED]@@QBEPBDXZ)
C:\Temp\delthis\Debug\delthis.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Temp\delthis\delthis\Debug\BuildLog.htm"
delthis - 13 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



i could not understand that this code works well using MSVS2003 envoirnment but 
fails even on build in MSVS2005. i also give the library name and path and also 
give additional directries path. can any one help me in this particular 
senario... 

KHURRAM SHAHZAD

Reply via email to