Re: [AMBER] Unable to compile mixed C/Fortran code.

From: Bill Ross <ross.cgl.ucsf.edu>
Date: Tue, 26 Dec 2017 04:18:48 -0800

On 12/26/17 3:53 AM, suma jayakrishnan wrote:

> gcc -fPIC -DSYSV -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp
> testp.c.o testp.f.o -lgfortran -w
> /usr/bin/ld: cannot find -lgfortran
It seems your gcc/gfortran setup is incomplete, in that a file like

/usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.a

which -lgfortran implies, and which exists on my Ubuntu system, is
probably missing, or if there needs to be pointed to properly.

I would review gfortran install instructions.

Bill




_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Dec 26 2017 - 04:30:02 PST
Custom Search