#include <gmp.h> #include <iostream> using namespace std; int main() { mpz_t x; mpz_set_str (x, "50", 10); char* str; mpz_get_str(str, 10, x); std::cout << str; return 0; }
Standard input is empty
/home/jyOe18/cc9KBUjz.o: In function `main': prog.cpp:(.text.startup+0x17): undefined reference to `__gmpz_set_str' prog.cpp:(.text.startup+0x27): undefined reference to `__gmpz_get_str' collect2: error: ld returned 1 exit status
Standard output is empty