compil error

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
User avatar
donguiyo
Posts: 29
Joined: Thu Mar 11, 2004 5:17 pm
Location: BOEM

compil error

#1 Unread post by donguiyo »

after typing make (upw case), I get:

fortcom: Error: mod_ncparam.f90, line 692: This name does not have a type, and must have an explicit type. [HEADER]
Hfile=HEADER
--------------^
fortcom: Error: mod_ncparam.f90, line 692: A CHARACTER data type is required in this context. [HEADER]
Hfile=HEADER
--------------^
compilation aborted for mod_ncparam.f90 (code 1)
gmake: *** [Build/mod_ncparam.o] Error 1

========================================
then going to mod_ncparam.f90 line 692, I see:
====================================

Rdir="/home/auad/Models"
Hdir="/home/auad/Models/ROMS/Include"
Hfile=HEADER
Adir="./ROMS/Functionals"
=====================================
where line 692 is Hfile=........

how and where is this fixed? thx
Guiyo.

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#2 Unread post by kate »

The string HEADER should be converted to something else by the C preprocessor. I think the string should be ROMS_HEADER. If you look in the makefile, there is stuff like this:

Code: Select all

        HEADER := $(addsuffix .h, \
                        $(shell echo ${ROMS_APPLICATION} | tr [A-Z] [a-z]))
and

Code: Select all

  ROMS_CPPFLAGS += -D'ROMS_HEADER="$(HEADER)"'
This is telling you that ROMS_HEADER will be converted to what's in the makefile variable HEADER.

Post Reply