problem compiling ROMS w/ linux-gfortran

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
natarov
Posts: 2
Joined: Wed Feb 28, 2007 8:00 pm
Location: IPRC, University of Hawaii

problem compiling ROMS w/ linux-gfortran

#1 Unread post by natarov »

I get the following error message at the very end of the
"make" run:

[..]
gfortran -frepack-arrays -O3 -ffast-math Build/master.o Build/ocean_control.o Build/ocean_coupler.o Build/propagator.o -o Executable/oceanS Build/libNLM.a Build/libANA.a Build/libICE.a Build/libUTIL.a Build/libMODS.a -L/usr/local/lib -lnetcdf
Build/libNLM.a(output.o)(.text+0x340): In function `output_':
output.f90: undefined reference to `__netcdf__nf90_close'
Build/libNLM.a(output.o)(.text+0x466):output.f90: undefined reference to `__netcdf__nf90_close'
Build/libNLM.a(output.o)(.text+0x538):output.f90: undefined reference to `__netcdf__nf90_close'
Build/libUTIL.a(close_io.o)(.text+0x56): In function `close_io_':

.....
and then this continues for another hundred of lines or so.
Has anyone encountered a similar problem and knows how to resolve it?
Thank you.

Post Reply