I've managed to to use mpfr-mpir-gmp in CodeBlocks but I want to in eclipse C++:
When I compile the code it compiles and build but if I run the project it says: "error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory".
So can anyone show me how to configure eclipse to use gmp-mpifr-mpir correctly?
If I compile from a terminal:
g++ -lmpir -lmpfr -lgmp myEclpiseMPFRMPIRproj.cpp
then :
./a.out
It works fine and doesn't complain about the same problem. So I think I don't know how to pass those flags -lgmp, -lmpir -lmpfr
.
Thank you.