Jeff thanks for your help
I tried to link the compiler to the netcdf.mod file but it did not help
(before I had a link to that file in the compiling folder)
The massages I get are not from not seeing netcdf.mod
I did see people use the -I switch but did not understand where do they
point it to.
Thanks again
yair
-----Original Message-----
From: Jeff Whitaker [mailto:jswhit@xxxxxxxxxxx]
Sent: Thursday, February 01, 2007 5:47 AM
To: Yair suari
Cc: netcdfgroup@xxxxxxxxxxxxxxxx
Subject: Re: undefined reference using netcdf library
Yair suari wrote:
> i an a new user to netcdf,unix,fortran so this will probably be easy
> to most of you but i cant get to start using the netcdf interface.
> when trying to compile i get the following massages:
>
> yair@yairsuari:~/fortran/cdfdata$ ifort create.f90 -g -o create.o
> /tmp/ifortmAdSAz.o: In function
> `cdfcreate':/home/yair/fortran/cdfdata/create.f90:5: undefined
> reference to `netcdf_mp_nf90_create_'
> /tmp/ifortmAdSAz.o: In function
> `handle_err':/home/yair/fortran/cdfdata/create.f90:12: undefined
> reference to `netcdf_mp_nf90_strerror_'
>
> i am using ubuntu (debian based linux) on x86 machine and intel
> fortran compiler 9.1
>
> when googling around for this i saw a similar problem created when
> using a different compiler for your programs and for the netcdf
> compilation but this is not the case, i have always used intel.
>
> please HELP
> yair
>
> --
> Yair Suari
> Hamafteach 23 Michmoret Israel 40297
> Phone-0528-524520, 09-8664245
Yair: You need to use pass ifort (or any fortran compiler) the location
of 'netcdf.mod', via '-I/path/to/module' and the library via
'-L/path/to/netcdf/library -lnetcdf'.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================