Undefined gfortran symbols
Tobias Burnus
burnus@net-b.de
Sun Aug 26 17:03:00 GMT 2007
Boris Blankleider wrote:
> I'm a total newbie to gfortran and need help! I'm running gfortran on
> an iMac core-2 duo and it usually works well. However, on a particular
> program it gives
>
> /usr/bin/ld: Undefined symbols:
> __gfortran_internal_free
> __gfortran_internal_malloc
> __gfortran_pow_r4_i4
> collect2: ld returned 1 exit status
> How can I fix this?
The three symbols were part of GCC gfortran 4.2.x and early versions of
4.3.0 (4.3.0 is current developer version which changes daily); the
symbols have been dropped in later versions of gfortran.
Solution: Recompile all files to make sure that none of the object files
contains a reference to the now-deleted library functions.
Tobias
More information about the Fortran
mailing list