[Dock-fans] compiling dock4.0 on linux

Scott Brozell sbrozell at scripps.edu
Fri Feb 18 17:08:29 PST 2005


Hi,

On Wed, 16 Feb 2005, Kristin Lynne Meagher wrote:

> Hi.  I'm trying to compile dock 4.0.1 on linux and get the following error
> message (the first of many).  Could someone give me a hand?
>
> f77 -O2    -c -o addprh.o addprh.f
> addprh.f: In program `addprh':
> addprh.f:52:
>          if ((chr.ne.'p').and.(chr.ne.'P').and.(chr.ne.'a').and.
>                  1   2
> Equality operator at (1) must operate on two scalar (not array)
> subexpressions, two function invocations returning arithmetic or character
> scalars, or a combination of both -- but the subexpression at (2) is an
> array

Using 5.2 beta dock addprh.f:

chr is not declared; so it is implicitly a real.
To get g77
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
to stop complaining declare it as character:

RCS file: cvsroot/dock/utilities/accessories_sgi/addprh.f,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 addprh.f
34a35
>       character chr

btw addprh.f compiles out of the box using ifort:
Intel(R) Fortran Compiler for 32-bit applications, Version 8.0   Build 20031016Z Package ID: l_fc_p_8.0.034

Scott Brozell




More information about the Dock-fans mailing list