Cannot make BigInt class working in Visual C++
NickName:Andiana Ask DateTime:2016-12-01T09:16:54

Cannot make BigInt class working in Visual C++

I am trying to representing a 128-bit number in Visual C++, which direct me to the library BigInt class. Many people mentioned it, so I think its a well known library.

When I try to run its main example, I got a long error list. Seem like something missing.

Error   1   error LNK2019: unresolved external symbol "protected: virtual __thiscall BigInt::BaseBigInt::~BaseBigInt(void)" (??1BaseBigInt@BigInt@@MAE@XZ) referenced in function "public: virtual __thiscall BigInt::Rossi::~Rossi(void)" (??1Rossi@BigInt@@UAE@XZ)    c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   2   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 BigInt::Rossi const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVRossi@BigInt@@@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)   c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   3   error LNK2019: unresolved external symbol "public: __thiscall BigInt::Rossi::Rossi(void)" (??0Rossi@BigInt@@QAE@XZ) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   4   error LNK2019: unresolved external symbol "public: __thiscall BigInt::Rossi::Rossi(unsigned __int64)" (??0Rossi@BigInt@@QAE@_K@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)   c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   5   error LNK2019: unresolved external symbol "public: __thiscall BigInt::Rossi::Rossi(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int)" (??0Rossi@BigInt@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)    c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   6   error LNK2019: unresolved external symbol "public: long double __thiscall BigInt::Rossi::toDouble(void)const " (?toDouble@Rossi@BigInt@@QBEOXZ) referenced in function "void __cdecl simpleDemoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?simpleDemoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)  c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   7   error LNK2019: unresolved external symbol "public: static class BigInt::Rossi __cdecl BigInt::Rossi::fromDouble(long double const &)" (?fromDouble@Rossi@BigInt@@SA?AV12@ABO@Z) referenced in function "void __cdecl simpleDemoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?simpleDemoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)  c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   8   error LNK2019: unresolved external symbol "public: class BigInt::Rossi __thiscall BigInt::Rossi::operator+(class BigInt::Rossi const &)" (??HRossi@BigInt@@QAE?AV01@ABV01@@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)   c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   9   error LNK2019: unresolved external symbol "public: class BigInt::Rossi __thiscall BigInt::Rossi::operator*(class BigInt::Rossi)const " (??DRossi@BigInt@@QBE?AV01@V01@@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)   c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   10  error LNK2019: unresolved external symbol "public: class BigInt::Rossi __thiscall BigInt::Rossi::operator/(class BigInt::Rossi const &)const " (??KRossi@BigInt@@QBE?AV01@ABV01@@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   11  error LNK2019: unresolved external symbol "public: class BigInt::Rossi __thiscall BigInt::Rossi::sqrt(void)" (?sqrt@Rossi@BigInt@@QAE?AV12@XZ) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)  c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   12  error LNK2019: unresolved external symbol "public: static class BigInt::Rossi __cdecl BigInt::Rossi::pow(class BigInt::Rossi const &,class BigInt::Rossi const &,bool)" (?pow@Rossi@BigInt@@SA?AV12@ABV12@0_N@Z) referenced in function "void __cdecl simpleDemoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?simpleDemoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   13  error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall BigInt::Rossi::toStr0xHex(void)const " (?toStr0xHex@Rossi@BigInt@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "void __cdecl simpleDemoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?simpleDemoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)   c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   14  error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall BigInt::Rossi::toStrDec(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?toStrDec@Rossi@BigInt@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   15  error LNK2019: unresolved external symbol "public: virtual unsigned int __thiscall BigInt::Rossi::getActualHexDigits(void)const " (?getActualHexDigits@Rossi@BigInt@@UBEIXZ) referenced in function "void __cdecl simpleDemoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?simpleDemoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   16  error LNK2019: unresolved external symbol "public: virtual unsigned int __thiscall BigInt::Rossi::getActualDecDigits(void)const " (?getActualDecDigits@Rossi@BigInt@@UBEIXZ) referenced in function "void __cdecl simpleDemoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?simpleDemoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   17  error LNK2019: unresolved external symbol "public: static int __cdecl BigInt::Run::mainBigInt(int,char * *)" (?mainBigInt@Run@BigInt@@SAHHPAPAD@Z) referenced in function _main c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   18  error LNK2019: unresolved external symbol "public: static void __cdecl BigInt::Run::showTime(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?showTime@Run@BigInt@@SAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) referenced in function _main  c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   19  error LNK2019: unresolved external symbol "public: static void __cdecl BigInt::Run::showCommandLine(class std::basic_ostream<char,struct std::char_traits<char> > &,int,char * *)" (?showCommandLine@Run@BigInt@@SAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@HPAPAD@Z) referenced in function "void __cdecl showIllegalCommandLineBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,int,char * *)" (?showIllegalCommandLineBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@HPAPAD@Z) c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   20  error LNK2019: unresolved external symbol "public: static void __cdecl BigInt::Run::showHelp(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?showHelp@Run@BigInt@@SAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)   c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   21  error LNK2019: unresolved external symbol "public: static void __cdecl BigInt::Test::setTestName(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int,unsigned int)" (?setTestName@Test@BigInt@@SAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@1III@Z) referenced in function "void __cdecl demoBigInt(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?demoBigInt@@YAXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)    c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   22  error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const BigInt::s_strHelp" (?s_strHelp@BigInt@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)    c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   23  error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const BigInt::s_strDemo" (?s_strDemo@BigInt@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)    c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   24  error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const BigInt::s_strTest" (?s_strTest@BigInt@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)    c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   25  error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const BigInt::s_strTime" (?s_strTime@BigInt@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)    c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt
Error   26  error LNK2001: unresolved external symbol "public: static unsigned int BigInt::Test::s_returnValue" (?s_returnValue@Test@BigInt@@2IA)   c:\Users\HyNguyen\documents\visual studio 2013\Projects\TestBinInt\TestBinInt\Source.obj    TestBinInt

Copyright Notice:Content Author:「Andiana」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40901073/cannot-make-bigint-class-working-in-visual-c

More about “Cannot make BigInt class working in Visual C++” related questions

Cannot make BigInt class working in Visual C++

I am trying to representing a 128-bit number in Visual C++, which direct me to the library BigInt class. Many people mentioned it, so I think its a well known library. When I try to run its main

Show Detail

Visual C++ BigInt and SecureRandom? Is there a BigInt library with modPow?

I have to port some crypto code to visual c++ from java which (visual c++) I am not very familiar with. I found a library at http://sourceforge.net/projects/cpp-bigint/ that I can use for big inte...

Show Detail

BigInt inconsistencies in PowerShell and C#

According to microsoft documentation the [BigInt] datatype seems to have no defined maximum value and theoretically can hold an infinitely large number, but I found that after the 28th digit, some ...

Show Detail

Spark SQL cannot REDUCE bigint array

I'm working with databricks 8 with a Spark 3.1.1 cluster. I have a temperatures column that holds and array of bigint, but I'm getting an error when I want process an average of the array with: SEL...

Show Detail

using bigint class c++

I am solving a problem where I need to deal with 120 digit binary numbers. there is no simple data type and I have understood I need to use bigint. I am using 64 bit win 7 HB and visual studio 2010

Show Detail

Big Integer class in visual studio

As you know, There is a class in Microsoft Visual Studio with Framework 4, 4.5, for working with big integers. What is the method name which used for multiplication in "BigInt" class ?

Show Detail

dlib build error in Visual Studio 2017 CE

I had downloaded dlib-19.6 and I have OpenCV 3.3.0 running on my windows 10 laptop. Anytime I follow the instruction on dlib website to compile an example using Make 3.9, I get the following errors...

Show Detail

c# conversion bigint decimal

I'm working on a c# application with a sql server 2005 database. what is the best way to convert to decimal a value brought to a datareader from a database, not knowing if the value that is coming ...

Show Detail

Typescript BigInt addition issue: Cannot mix BigInt and other types, use explicit conversions

We are seeing the following compilation error on our build servers: TypeError: Cannot mix BigInt and other types, use explicit conversions 119 | const one: bigint = BigInt(1); ...

Show Detail

Using perl bigint in ranges

When I iterate through some integer range and try to use $_ value as bigint, it behaves like regular number instead. So, the following code prints 100000000000000000000 1e+20 when I expect to see

Show Detail