Search code examples
c++gmp

Problems with GMP library and C++


First I included gmp.h, and when I compiled, it said that it didn't find the functions ( float function, mpf_t ). Then I found a page where it said that you should include gmpxx.h for C++ projects, but when compiling it just says that the compiler can't find gmpxx. Wouldn't that be installed with GMP?


Solution

  • Build GMP with --enable-cxx and it should work.