I have c++ builder community version 10.4. Boost multiprecision works fine for Win32 compiles, but does not compile for Win64, giving link errors. c++builder is using version 1.70 of boost.
[ilink64 Error] Error: Unresolved external '__udivti3' referenced from C:\USERS\DAVID\LOCAL_DEVEL\BOOST_TEST\WIN64\DEBUG\FILE1.O [ilink64 Error] Error: Unresolved external '__umodti3' referenced from C:\USERS\DAVID\LOCAL_DEVEL\BOOST_TEST\WIN64\DEBUG\FILE1.O
Has anyone seen this, and has a solution? Example with some standard #includes deleted.
//---------------------------------------------------------------------------
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/cpp_bin_float.hpp>
#include <boost/rational.hpp>
using namespace std;
using namespace boost::multiprecision;
using boost::rational;
typedef boost::rational<cpp_int> t_prob;
int main (int argc, char *argv [])
{ t_prob a,b,c;
a = 4;
// a /= 6;
b = 13;
// b /= 7;
c = a * b;
std::cout << c << "\n";
}