[netcdfgroup] g77, g95, netcdf-g95 on mac

Hi,

I currently upgraded the netcdf of my mac power pc OS X 10.4.11 to
netcdf-g95 using fink (I will have to work with g95 in a near future).

However, a code that I used to run on g77 with netcdf not is not
compiling anymore. I've changed the library file path inside the
fortran subroutine to:

include '/sw/lib/netcdf-g95/include/netcdf.inc'

but the following problem occurs:

g77 -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 bcondorl.o box.o dens.o
depth.o file2ic.o findpsi.o printall.o profq.o proft.o profu.o profv.o
prxy.o prxyz.o prxz.o pryz.o seamount.o slpmax.o smol_adif.o vertvl.o
def_var_netcdf.o handle_netcdf_error.o write_netcdf.o
-L/sw/lib/libnetcdf.a -lnetcdf
/usr/bin/ld: Undefined symbols:
_nf_def_var__
_nf_put_att_text__
_nf_strerror__
_nf_close__
_nf_create__
_nf_def_dim__
_nf_enddef__
_nf_put_var_real__
_nf_put_vara_real__
collect2: ld returned 1 exit status
make: *** [pom.exe] Error 1

I also tried to compile the code with g95, without success. Does
anybody have any suggestions?

Thanks a lot,

Felipe


  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: