This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MPFR error


Jenn-Ching Luo wrote:
I checked mpfr object files. The undefined reference, as mentioned above, is
in the file
set_dfl_prec.o, and the file is in the library libmpfr.a. I can see the
reference in the index table of libmpfr.a. The library "libmpfr.a" seems
correct. "ld" cannot find the reference in libmpfr.a.

If I link the object file, set_dfl_prec.o, to the program, e.g.,
gcc -o test -I(something) test.c -L(something) -lmpfr -lgmp set_dfl_prec.o

It works. Is it a "ld" problem? Or, how to solve it?

Is it possible that ld is picking up a different libmpfr.a file than the one you're looking at?


- Brooks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]