I'm running VS 2008, intel fortran 11.1I got pre-build binaries fromChristoph Gohlke's netcdf4 build
I would love to use the more recent release from Unidata athttp://www.unidata.ucar.edu/software/netcdf/win_netcdf/#compnotesbut it appears to be only for C and I need to compile in fortran.Maybe there is something I don't understand.
So using Gohlke's build, I put all the .dll intoc:\\WINDOWS\\system32\\
At top of my program I have include statement: INCLUDE 'X:\\netcdf\\netcdf4_intel\\netcdf-4.1.3-win-dev\\netcdf-4.1.3-curl-fortran\\fortran\\netcdf.inc'Then I use a .bat to compile (added as external tool)
My netcdf4_x64.bat file is as
set linkerpath=C:\\Program Files
"%linkerpath%\\ifortvars.bat " intel64 vs2008
/exe:%2 /fpp /module:C:\\fortran_tools\\trash ^
/Qsave-temps- /Qsave /Qvec-report0 /heap-arrays:1000
/check:bounds,format,pointers,uninit /libs:dll /threads /nologo
/extend-source:132 /traceback ^
/assume:byterecl /libs:dll /F40000000 ^
%1 /link /libpath:"%LIBDIR%"
When I compile using just a straight x64.bat, I get the
LINK : fatal error
LNK1104: cannot open file 'netcdf.LIB'
This is exactly what I expect,
since x64.bat doesn't have any netcdf linking.
Now if I compile using
I get the following errors:
cdf2fortranv2_SMOS.obj : error LNK2019: unresolved
external symbol NCOPN referenced in function MAIN__
error LNK2019: unresolved external symbol NCINQ referenced in function
So, to me this means that it is actually finding the netcdf.lib
file correctly, but for some reason isn't finding all the netcdf functions.....
Do you have an insight into this?
ANY help appreciated!Thanks,Chelle