This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Undefined symbols for static gfortran on Mac
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: David Rawlins <rawlins at sci dot utah dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 18 Aug 2009 01:54:49 +0300
- Subject: Re: Undefined symbols for static gfortran on Mac
- References: <4A89DE39.9040007@sci.utah.edu>
On Tue, Aug 18, 2009 at 01:48, David Rawlins<rawlins@sci.utah.edu> 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.
Seems like you're not linking to libgcc. Are you using the gfortran
driver to link, or are you doing it manually?
--
Janne Blomqvist