__gfortran_copy_string
John Nelson
J.M.NELSON@BHAM.AC.UK
Sun Jun 24 20:53:00 GMT 2007
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
and I get an error:
/usr/bin/ld: Undefined symbols:
__gfortran_copy_string
Google on gfortran_copy_string shows that others have had problems
with this and
cannot find where this piece of code is located.
gfortran was downloaded yesterday (23 June 2007) to MacOSX 10.4.10 on
PowerPC G4.
gcc is latest installation from XCode 2.4.1
A hex dump of HBOOKwrap.o shows that gfortran_copy_string is not in
its symbol table.
A hex dump of /usr/local/gfortran/libgfortran3.dylib shows that it
does not contain this symbol.
It is not present in libgfortran.a either.
I am missing something, or have an incorrect gfortran library, or ??
Advice would be much appreciated.
J.M.Nelson
University of Birmingham, UK
More information about the Fortran
mailing list