Definition of _gfortran_os_error?

FX fxcoudert@gmail.com
Mon Jun 2 09:33:00 GMT 2008


> $ g++ cbfg.o cbf.o -o cbf4 -lgfortran
> cbf.o: In function `rellenar_array':
> /home/alberto/testsFortran/c_binding3.f90:20: undefined reference to
> `_gfortran_os_error'

It looks to me like a case of getting the wrong library linked in: I
see your gfortran is not the same as your g++; are you sure you don't
have a gfortran-4.2 around that gets linked instead of the 4.3
libraries?

FX

-- 
FX Coudert
http://www.homepages.ucl.ac.uk/~uccafco/



More information about the Fortran mailing list