__gfortran_copy_string

Tobias Burnus burnus@net-b.de
Sun Jun 24 21:08:00 GMT 2007


John Nelson wrote:
> I am trying to link a couple of simple c programs and a fortran
> wrapper (HBOOKwrap.F) with the CERN library.
> gfortran compile option: -ffixed-line-length-0
>
> Link line:
> gfortran -o Trg2ntp Trg2ntp.o getEv.o HBOOKwrap.o -L/cern/2005/lib
> -lpacklib
> /usr/bin/ld: Undefined symbols:
> __gfortran_copy_string
Are you by change mixing object files compiled by an older version of
gfortran? Or do you have two different gfortran compilers installed
which are at a different path?

In the changelog I find for 2006-07-12:
* intrinsics/string_intrinsics.c (copy_string): Remove function.

This function was in gfortran 4.1.x (libgfortran.so.1.0.0) but has been
removed for gfortran 4.2.x/4.3.x (libgfortran.so.2 and .3).

Another thing you should check is that the library path is correctly set.

Is the file in /cern/2005/lib compiled with the same version of gfortran?


> gfortran was downloaded yesterday (23 June 2007) to MacOSX 10.4.10 on
> PowerPC G4.
More helpful for us is the version number shown by gfortran -v.


Tobias



More information about the Fortran mailing list