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: reg problem in cernlib



Hi,


On 2011-07-22 12:49, kaushik@veccal.ernet.in wrote:
I have recently install cernlib in my system, my system is i686,scientific linux5 -gcc4.1, i install cernlib amnually, when i run programs using cernlib i got following error, is it due to gfortran. Whether i have istall gfortran separately.
/usr/local/cern/pro/i686-slc5-gcc41-opt/lib/libpacklib_noshift.a(divdif.o): In function `divdif_':
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:94: undefined reference to `_gfortran_st_write'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:94: undefined reference to `_gfortran_transfer_integer'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:94: undefined reference to `_gfortran_st_write_done'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:95: undefined reference to `_gfortran_st_write'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:95: undefined reference to `_gfortran_transfer_integer'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:95: undefined reference to `_gfortran_st_write_done'

1) is your CERNLIB compiled with the same version of gfortran as your program that uses it? Otherwise you might run into similar incompatibilities, especially if you use a library that is compiled with a newer gfortran than the one you're using. 2) do you use gfortran as a linker? Otherwise you will have to provide the correct arguments on the linker line ('-lgfortran -lgfortranbegin' do it for gfortran 4.4.5, it may be different in your version)

Cheers,
- Tobi


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