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 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


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