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

Compilation error in /libiop/algebra/utils.hpp #55

Open
mtbadakhshan opened this issue Jul 11, 2024 · 0 comments
Open

Compilation error in /libiop/algebra/utils.hpp #55

mtbadakhshan opened this issue Jul 11, 2024 · 0 comments

Comments

@mtbadakhshan
Copy link

I got the following error:

In file included from /home/taghi/Project/polaris-libiop/libiop/algebra/utils.cpp:1:
/home/taghi/Project/polaris-libiop/./libiop/algebra/utils.hpp:40:1: error: ‘size_t’ does not name a type
   40 | size_t gcd(const size_t a, const size_t b);
      | ^~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [libiop/CMakeFiles/iop.dir/build.make:174: libiop/CMakeFiles/iop.dir/algebra/utils.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1231: libiop/CMakeFiles/iop.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I fixed that by doing the following changes:

 /** un-optimized simple GCD procedure */
-size_t gcd(const size_t a, const size_t b);
+std::size_t gcd(const std::size_t a, const std::size_t b);

I am using Arch Linux and gcc (GCC) 14.1.1 20240522.

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