> I am totally a newbie to Fortran and G95. I wrote a small
> program. The compiler gave me the error as followed:
>
> g95 -o test test.f90 -L. ex.dll
> In file test.f90:7
>
> IF (WFLG /= .FALSE.) r = 1
> 1
> Error: Operands of comparison operator '.ne.' at (1) are LOGICAL(4)/
> LOGICAL(4)
Normally one would just say
IF (WFLG) r = 1
or
IF (.NOT.WFLG) r = 1
- Robert
In the past, I've had to maintain a 9000 file 700K-line Fortran
structural analysis program with roots that go back to 1962. It can
be quite difficult.
Some newer compilers don't support the old structures. I would
recommend looking up a list of deprecated and obsolescent features in
Fortran 77, Fortran 90, Fortran 95 and Fortran 2003 to get an idea of
language changes that might be causing problems for you.
Ted