gfortran confusing object file with source?

Kalle Olavi Niemitalo kon@iki.fi
Fri Jul 26 13:39:00 GMT 2013


Jeffrey Kelling <j.kelling@hzdr.de> writes:

> gfortran -I../../src/low_level -I../../src/group_level  
> -I/home/kelling/checkout/want-2.4.0/plugins/netcdf/include -O3 -g -x f95-cpp
> -input -D__GFORTRAN -D__STD_F95 -D__FFTW -D__MPI -D__PARA -I../include 
> -I../include -I. -I/home/kelling/checkout/want-2.4.0/extlibs/iotk/include 
> -I../libs -I../wannier -I../transport   -L../../src/group_level -L. 
> -L/home/kelling/checkout/want-2.4.0/plugins/netcdf/lib -o etsf_io etsf_io.o 
> -letsf_io_utils -letsf_io -lnetcdf

Remove "-x f95-cpp-input".  It means the following files in the
command line are some kind of Fortran source (I guess Fortran 95
with C preprocessor directives).  That isn't right for etsf_io.o.
Alternatively, you could restore the default with "-x none".



More information about the Gcc-help mailing list