Hello, I have installed gmp library on a centos system. The problem is while compiling only mpz_inits and mpz_clears are giving errors, all the other functions compile fine. The errors given are: undefined reference to `__gmpz_inits' undefined reference to `__gmpz_clears' If I used multiple mpz_init and mpz_clear, the program compiles without any error and gives the appropriate output. Why is this happening? Please help.
Thread moved to the "Fedora/RedHat and derivatives" forum.
Ubuntu Forums Code of Conduct