syntax error on 4.9.2

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Nov 15 06:40:00 GMT 2016


On Tue, Nov 15, 2016 at 08:59:37AM +0330, Mahmood Naderan wrote:
> I am running the following command to compile a fortran code
> 
>     gfortran -ffree-form -ffree-line-length-0 -ff2c
> -fno-second-underscore -I/opt/fftw-3.3.5/include -O3 -c xml.f90
> -I/opt/openmpi-2.0.1/include -pthread -I/opt/openmpi-2.0.1/lib
>     xml.F:641.46:
> 
>            CALL XML_TAG("set", comment="spin "
>                                               1
>     Error: Syntax error in argument list at (1)
> 
> That line is
> 
>     CALL XML_TAG("set", comment="spin "//TRIM(ADJUSTL(strcounter)))
> 
> It seems that the code is compatible fortran. I don't know which
> version, but currently, gfortran is 4.9.2 (ubuntu 15.04). How can I
> fix that?
> 

First, try updating to a newer version of gfortran.  There's been 8 
releases since 4.9.2.

Second,  there is way too little information to help you.  Does xml_tag
have an implicit or explicit interface?

-- 
Steve



More information about the Fortran mailing list