[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20031009: problem with ifc and netcdf
- Subject: 20031009: problem with ifc and netcdf
- Date: Thu, 09 Oct 2003 11:20:12 -0600
>From: "Question" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200310090248.h992moOb012215
>hi there,
>
>i compiled netcdf on a linux machine with gcc compiler. now i am trying
>to compile a program which calls this netcdf lib with ifc(intel fortran
>compiler). but the following error message are returned.
>
>>>
>...
>tmp/ifcDsiuVF.o(.text+0x1988): undefined reference to
>`nf_put_vara_double_'
>>>
>
>i have include the lib with -L and -I options and the program works fine
>with pgi compiler.
>
>do you have any idea about this?
>
>thanks in advance!
The following comment taken from a search of our online netCDF support
archives:
netCDF HomePage
http://my.unidata.ucar.edu/content/software/netcdf/index.html
netCDF support email archive
http://www.unidata.ucar.edu/glimpsedocs/ghnetcdf.html
-- use 'intel fortran' as the search key
from someone using the IFC may be relevant to your problem:
From steve@xxxxxxxxxxxxxxxx Mon Jun 2 08:42:47 2003
To: Ayal Anis <anisa@xxxxxxxxxxxxxx>
cc: address@hidden, Chuck Folden <foldenc@xxxxxxxxxxxxxx>,
Subject: 20030602: FYI - NETCDF flags for IFC
...
> I found the following to work and pass
> the make test successfully. The following is the relevant section
> from my .bashrc file:
>
> # Add Intel's compiler to path
> export PATH=$PATH:/opt/intel/compiler70/ia32/bin
>
> # The following is needed when using Intel Fortran Compiler with NetCDF
> # NOTE: Activate before running the NetCDF configure script
> # ===================================================
> export FC=ifc
> export FLIBS="/opt/intel/compiler70/ia32/lib/libPEPCF90.a"
> #export FFLAGS="-O -mp -static-libcxa"
> export FFLAGS="-O -mp -dynamic-libcxa"
> export CPPFLAGS="-DNDEBUG -DpgiFortran"
In particular, make sure that you make the environment variable definitions
active before running the netCDF configure script. Since you have
an existing build, you should proceed in this order:
make distclean
-- define the environment variables listed above
./configure
make
make install
Cheers,
Tom Yoksas