在Visual c++ 2008 Express中使用BigInt类

Using BigInt class in Visual C++ 2008 Express

本文关键字:BigInt Express Visual c++ 2008      更新时间:2023-10-16

我需要在visual c++ 2008 express edition中使用bigint类。当编译

时,我目前得到这些错误消息
    1>------ Build started: Project: P Root Test, Configuration: Debug Win32 ------
    1>Linking...
    1>P Root Test.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class BigInteger const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVBigInteger@@@Z) referenced in function _main
    1>P Root Test.obj : error LNK2019: unresolved external symbol "public: void __thiscall BigInteger::operator=(class BigInteger const &)" (??4BigInteger@@QAEXABV0@@Z) referenced in function _main
    1>P Root Test.obj : error LNK2019: unresolved external symbol "public: __thiscall BigInteger::BigInteger(int)" (??0BigInteger@@QAE@H@Z) referenced in function _main
    1>P Root Test.obj : error LNK2019: unresolved external symbol "public: void __thiscall BigInteger::multiply(class BigInteger const &,class BigInteger const &)" (?multiply@BigInteger@@QAEXABV1@0@Z) referenced in function "public: class BigInteger __thiscall BigInteger::operator*(class BigInteger const &)const " (??DBigInteger@@QBE?AV0@ABV0@@Z)
    1>G:My Stuff# SchoolCryptoP Root TestDebugP Root Test.exe : fatal error LNK1120: 4 unresolved externals
    1>Build log was saved at "file://g:My Stuff# SchoolCryptoP Root TestP Root TestDebugBuildLog.htm"
    1>P Root Test - 5 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

您是否检查了在您的项目中定义BigInteger的库?