I apologize for the last message. I just found this:
http://www.macresearch.org/netcdf-gfortran
The instructions from Roy are for gfortran, but they worked for g95 too.
However, I was missing netcdf and netcdf-bin (both 3.6.3.1). I've got
them installed throught Fink and applied the following compiling
option.
LIBS = -L/sw/lib -lnetcdf -L/sw/lib/netcdf-g95/lib -lnetcdff
Now g95 is running well. :^)
Felipe
---------- Forwarded message ----------
From: Felipe Pimenta <felipepimenta@xxxxxxxxx>
Date: Mon, Feb 2, 2009 at 10:34 AM
Subject: g95 + netcdf / Mac OS 10.5.6
To: netcdfgroup@xxxxxxxxxxxxxxxx
I am trying to run a fortran code with g95 (0.91-1002) and netcdf
(netcdf-g95 and netcdf-g95-shlibs 3.6.3-3) in a Mac with OS x 10.5.6
(2.4 GHz Intel Core 2 Duo).
When I run the makefile, the fortran program compiles well. But when I
run it, I get got the following error (please see below).
$ make -f makefile_mac
.
.
g95 -O5 -c -o write_netcdf.o write_netcdf.f
g95 -O5 -c -o my_dens.o my_dens.f
g95 -O5 -o pom.exe pom2k.f areas_masks.o advave.o advq.o advt1.o
advt2.o advct.o advu.o advv.o baropg.o bcond.o dens.o depth.o
file2ic.o findpsi.o findpsivw.o printall.o profq.o proft.o profu.o
profv.o prxy.o prxyz.o prxz.o pryz.o slpmax.o smol_adif.o vertvl.o
def_var_netcdf.o handle_netcdf_error.o write_netcdf.o my_dens.o
-L/sw/lib/netcdf-g95/lib -lnetcdff
$ ./pom.exe
dyld: Symbol not found: _ncopts
Referenced from: /sw/lib/netcdf-g95/lib/libnetcdff.4.dylib
Expected in: dynamic lookup
Trace/BPT trap
Does anybody have any suggestions?
Many thanks,
Felipe
--
========================================
Felipe Mendonça Pimenta
University of Delaware
College of Marine and Earth Studies
233 Cannon Laboratory, Lewes, DE, 19958, USA
Phone: (302) 645-4008, Email: felipe@xxxxxxxx
========================================
--
========================================
Felipe Mendonça Pimenta
University of Delaware
College of Marine and Earth Studies
233 Cannon Laboratory, Lewes, DE, 19958, USA
Phone: (302) 645-4008, Email: felipe@xxxxxxxx
========================================