[netcdfgroup] Hello ???
Roy Mendelssohn
Roy.Mendelssohn at noaa.gov
Mon Feb 11 18:21:43 MST 2008
When you build netcdf, it puts certain options on the Fortran based
on the compiler and platform. From a terminal (assuming your
libraries are in /usr/local/lib) do:
nm -a /usr/local/lib/libnetcdff.a | more (this assumes that
both libnetcdff.a and libnetcdf.a were created rather than just the
one library)
then look to see how one of the undefined references in defined in
the library - it probably has some combination of leading or trailing
underscore, and when you compile anything that calls it it must have
the same options set.
-Roy M.
On Feb 11, 2008, at 4:59 PM, Mikhail Umorin wrote:
>
>
>>>> Kate Hedstrom <kate at arsc.edu> 2/11/08 6:21 PM >>>
> You need to be consistent with your fortran compiler and its flags
> between compiling netcdf and compiling FVCOM. Did you build the
> fortran
> part of netcdf? Look through the output of "make check" and configure
> to see what it's doing in terms of the fortran. Fortran flags to
> watch out for are those involving underscores
> (-fno_second_underscore?).
>
> Thank you for your suggestions --
>
> I do not supply any options to gfortran in FVCOM and when compiling
> netCDF (the result is also the same with -O2 -g — the only options
> given to gfortran in netcdf compile)
> I do build fortran netcdf libraries (including f77) (I also built it
> separately and shared with same luck)
>
> What else should I look for?
>
> Mikhail.
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup at unidata.ucar.edu
> 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 at noaa.gov (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."
More information about the netcdfgroup
mailing list