Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer class errors #1268

Open
daviddhtn opened this issue Apr 4, 2024 · 0 comments
Open

Integer class errors #1268

daviddhtn opened this issue Apr 4, 2024 · 0 comments

Comments

@daviddhtn
Copy link

daviddhtn commented Apr 4, 2024

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant