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: Undefined symbols for static gfortran on Mac



On 17 Aug 2009, at 23:48, David Rawlins wrote:


Hi,

I am able to successfully link dynamically to the gfortran library
(version 4.5.0) on an iMac, but when I try to link statically
(libgfortran.a), I get the following errors:

Undefined symbols:
  "___udivti3", referenced from:
      _gfc_itoa in libgfortran.a(write.o)
      __gfortrani_read_decimal in libgfortran.a(read.o)
      __gfortrani_read_radix in libgfortran.a(read.o)
  "___umodti3", referenced from:
      _gfc_itoa in libgfortran.a(write.o)
  "___divti3", referenced from:
      _convert_integer in libgfortran.a(list_read.o)
ld: symbol(s) not found

Any help would be appreciated.

what version of OSX? also have you installed a complete build of gcc?

IIRC these are not present in 10.4 libgcc_s.1 and it's essential that the linker finds libgcc.a from the 4.5 build.

Iain


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