2

I was compiling a make file on my PC. When I ran it, it generates the following error:

R_X86_64_PC32 against undefined symbol `strtoflt128'.

My PC is Windows 8.1 64 bit. I have cygwin64 installed with the following packages; gcc-core4.9.3, gcc-g++ 4.9.3, gcc-fortran 4.9.2-3.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
pasmon
  • 21
  • 1
  • could you please make this question a little clearer? What application are you trying to compile? (so others might be able to try it, too)... It looks like you don't have the full error here. Check out http://stackoverflow.com/questions/14779260/linker-error-relocation-r-x86-64-pc32-against-undefined-symbol-despite-compila for a good (similar) question, it might also have your solution! – Tim Groeneveld Apr 20 '15 at 04:23
  • I am trying to run make file related to mathlink that can be downloaded from http://www.feynarts.de/mathlink/. – pasmon Apr 22 '15 at 08:05

1 Answers1

5

This symbol is provided by libquadmath, so you will need to add -lquadmath to your link command. If it is already there, make sure it comes after all object files and static libraries.

Yaakov
  • 1,705
  • 10
  • 10
  • Was not necessary for me under gfortran 6 but now I am seeing this same error under gfortran 7 – Travis Feb 04 '21 at 16:07