Re: [netcdfgroup] netcdf-4.1.2 released...

Hi Jack:

Just a guess, but either your program can't find or is incompatible with the 
netcdf.mod file created when you built netcdf for fortran.  Possibilities 
include  (but my guess in #2):

1. You don't have the proper "include' statement in the code.

2.  When building, you are not giving enough info for the compiler to find 
netcdf.mod (from the compile statement that looks likely - add 
"-Imy/netcdf/includefiles"  where my/netcdf/includefiles is the path to 
wherever the includes are from your netcdf build.  So mine are in 
/netcdf4/local/include  so I would have "-I/netcdf4/local/includ"

3.  There is an incompatibility between the compile that built netcdf and the 
one you are using .

HTH,

-Roy

On Apr 2, 2011, at 6:00 PM, John Helly wrote:

> Hi.
> 
> I'm trying to build ROMS (an ocean model) for the first time on OSX 10.6.7 
> and appear to be having problems with netcdf-4. I rebuilt netcdf-4.1.3 using 
> hdf-1.8.6 (with zlib-1.2.5) and everything appeared to go well with that 
> using this configure command:
> 
> ./configure --prefix=/usr/local/netcdf-4.1.3 --enable-netcdf-4 --enable-f90  
> --with-hdf5=/usr/local/hdf5-1.8.6
> 
> However, when I try to build ROMS against that and this is the top of what I 
> get.  Can anyone suggest whant this might be due to?  Perhaps I didn't build 
> netcdf correctly?
> 
> Users/hellyj/src/ROMS/Projects/Upwelling/Build/libANA.a 
> /Users/hellyj/src/ROMS/Projects/Upwelling/Build/libUTIL.a 
> /Users/hellyj/src/ROMS/Projects/Upwelling/Build/libMODS.a 
> -L/usr/local/netcdf/lib -lnetcdf -L/usr/local/hdf5/lib -lhdf5_hl -lhdf5 -lz 
> -lcurl
> Undefined symbols:
> "___netcdf_MOD_nf90_create", referenced from:
>     ___mod_netcdf_MOD_netcdf_create in libMODS.a(mod_netcdf.o)
> "___netcdf_MOD_nf90_put_var_1d_eightbytereal", referenced from:
>     ___nf_fwrite3d_mod_MOD_nf_fwrite3d in libUTIL.a(nf_fwrite3d.o)
>     ___mod_netcdf_MOD_netcdf_put_fvar_1d in libMODS.a(mod_netcdf.o)
>     ___mod_netcdf_MOD_netcdf_put_fvar_0d in libMODS.a(mod_netcdf.o)
>     ___nf_fwrite2d_mod_MOD_nf_fwrite2d in libUTIL.a(nf_fwrite2d.o)
> "___netcdf_MOD_nf90_get_var_3d_eightbytereal", referenced from:
>     ___mod_netcdf_MOD_netcdf_get_fvar_3d in libMODS.a(mod_netcdf.o)
> 
> Thanks.
> 
> Cheers.
> --------------
> John Helly, University of California, San Diego / San Diego Supercomputer 
> Center / Scripps Institution of Oceanography / 760 840 8660 mobile / 
> stonesteps7 (Skype) / stonesteps7 (iChat) / http://www.sdsc.edu/~hellyj
> 
> 
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/ 

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 



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