This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gfortran confusing object file with source?
- From: Kalle Olavi Niemitalo <kon at iki dot fi>
- To: Jeffrey Kelling <j dot kelling at hzdr dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 26 Jul 2013 14:56:04 +0300
- Subject: Re: gfortran confusing object file with source?
- References: <1536456 dot ICeGCczVbu at it08>
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".