You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I got the following error:
I fixed that by doing the following changes:
I am using Arch Linux and gcc (GCC) 14.1.1 20240522.
The text was updated successfully, but these errors were encountered: