Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top