This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems compiling library
- From: Tim Prince <TimothyPrince at sbcglobal dot net>
- To: Wilbert Weijer <wilbert at lanl dot gov>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 19 May 2009 17:07:35 -0700
- Subject: Re: problems compiling library
- References: <1242774180.13568.73.camel@frigate.lanl.gov>
- Reply-to: tprince at computer dot org
Wilbert Weijer wrote:
>
> PRINT '(A,I,2A)', 'Error on line ', line, ' in file ', file
> 1
> Error: Nonnegative width required in format string at (1)
> **************************
I format requires a width for standard conformance, and gfortran requires
conformance here. Anyway, if a compiler makes its own choices, your
format will change from one to the next.
>
> Also, the ifort compile (for which the library is tested) uses the -i4
> option, but I can't find a comparable option in gfortran. I assume that
> 4 bit is the default,
Yes
>
> warning: format '%ld' expects type 'long int', but argument 3 has type
> 'int32'
>
That's a C format. It may well pose a problem on a 64-bit system, but
it's not Fortran.