[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20050707:netCDF Fortran (77 + 90) - dll in windows fortran



Unidata Support <address@hidden> writes:

> ------- Forwarded Message
>
>>To: address@hidden
>>From: "wg mcdougal" <address@hidden>
>>Subject: netCDF Fortran (77 + 90) - dll in windows fortran
>>Organization: UCAR/Unidata
>>Keywords: 200507062245.j66MjsS0003252
>
> Institution: ...
> Package Version: 3.6.1
> Operating System: windows xp
> Hardware Information: p4
> Inquiry: Hello,
>
> I am trying to use netCDF in WindowsXP / Compaq fortran and have done the 
> following:
>
> 1) Put netcdf.dll, netcdf.lib, ncgen.exe, ncdump.exe, and netcdf.h in 
> Windows\System32 folder.
>
> 2) Gave path to netcdf.inc
>
> 3) Put netcdf-3.6.0-p1\src in Program Files\Unidata   (Dont see why this is 
> reqd?)
>
> 4) Changed VS project setting per Mingshun Jiang email
>  
> (http://my.unidata.ucar.edu/cgibin/getfile?file=/content/support/help/MailArchives/netcdfgroup-list/msg00706.html)
>    + under project settings, tab 'Fortran', category 'Libraries', use 
> Run-time 'DLL';
>    + under project settings, tab 'link', add 'netcdf.lib' to 'Object/library 
> modules';
>    + under project settings, tab 'link', category 'input', add 
> 'c:\windows\system32\' into additional library path
>
> After this, a little fortran test program compiles, but gives the following 
> build error:
>
> Linking...
> Main.obj : error LNK2001: unresolved external symbol _NF_OPEN@20
> dfordll.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol 
> __imp___fpieee_flt
> Debug/Test3.exe : fatal error LNK1120: 2 unresolved externals
> Error executing link.exe.
>
>
> Thanks for your help,
> wg mcdougal
>
>
>
> --
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publicly available
> through the web.  If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.
>
> ------- End of Forwarded Message
>
>

Did you recieve an answer to this question?

If not, sorry!

Unfortunately, the 3.6.0 dll is broken with respect to Fortran. Please
use the 3.5.1 dll.

We hope to fix this problem in the next netCDF release.

Thanks,

Ed Hartnett
-- 
Ed Hartnett  -- address@hidden