Updated: The problem raises from g++ (13.2.0) environment detection.
The g++ compiler works well with:
CXX=/mingw64/bin/g++ make all
But does not work correctly with:
CXX="D:\msys64\mingw64\bin\g++.exe" make
(it adds more flag -DCRYPTOPP_DISABLE_ASM and then some classes like integer, do not work correctly)
Crypto++ Issue Report
Please help, the Integer class does not work:
Compiler: g++.exe (Rev2, Built by MSYS2 project) 13.2.0;
Plasform: Window 11, Mingw64;
Test code: Compile OK, but execution file returns nothing (cout does not work)
AutoSeededRandomPool prng;
Integer p("01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFH");
Integer x("1234567654312456789076532134567890012.");
Integer y(prng, 1, p); // random integer
cout << "p= " << p << endl;
cout << "x= " << x << endl;
cout << "y= " << y << endl;
Updated: The problem raises from g++ (13.2.0) environment detection. The g++ compiler works well with: CXX=/mingw64/bin/g++ make all But does not work correctly with: CXX="D:\msys64\mingw64\bin\g++.exe" make (it adds more flag -DCRYPTOPP_DISABLE_ASM and then some classes like integer, do not work correctly)
Crypto++ Issue Report
Please help, the Integer class does not work: Compiler: g++.exe (Rev2, Built by MSYS2 project) 13.2.0; Plasform: Window 11, Mingw64; Test code: Compile OK, but execution file returns nothing (cout does not work) AutoSeededRandomPool prng; Integer p("01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFH"); Integer x("1234567654312456789076532134567890012."); Integer y(prng, 1, p); // random integer cout << "p= " << p << endl; cout << "x= " << x << endl; cout << "y= " << y << endl;