This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: gfortran confusing object file with source?


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".


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