- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
does anyone has included netcdf into a cvf or ivf f90 project? I was trying it and failed.
I would by happy to get help.
Thanks in advance
Frank
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use netCDF in an IVF9.1/MSVS2005 project. See if the following procedure helps or not:
To build a library,
select the Project name in the Solution panel,
click on View -- Property Pages,
in the left-hand-side panel, click on Configuration Properties -- Fortran -- General,
in the right-hand-side panel, fill in the name of the folder containing netCDF.inc to the space after Additional Include Directories.
To build an Application,
select the Project name in the Solution panel,
click on View -- Property Pages,
in the left-hand-side panel, click on Configuration Properties -- Linker -- General,
in the right-hand-side panel, fill in the name of the folder containing netCDF.lib to the space after Additional Library Directories,
in the left-hand-side panel, click on Configuration Properties -- Linker -- Input,
in the right-hand-side panel, fill in the library name netCDF.lib.
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I converted your test_net.dsp into test_net.vcproj for MSVS2005 but it did not work. Then I started my MSVS2005 and added those two *.f90 to a new project. When I built the project, a lot of error messages appeared with the first message complaining about opening the library module file Typesizes.
I added the attached typeSizes.f90 to the project and rebuilt it. The original error message disappear and new message showed that a lot of netCDF symbols were unresolved.
I added your netcdf.lib to the running directory, filled in netcdf.lib to the space in Configuration Properties Linker Input Additional Dependencies, and rebuilt the project. The error messages looked the same as before.
I replaced your netcdf.lib with my netcdf.lib, as attached, and rebuilt the project. There is still one netCDF symbol NF_INQ_FORMAT unresolved. I do not know what to do with that.
My netcdf.lib is very old. I dont know why yours, with timestamp of 2006, is smaller than mine and does not work well with your application. I wonder whether you could find another netcdf.lib that could handle nf_inq_format.
WenP.S., the attached NFLIB.zip contains two files. I had the original name typesizes.f90 renamed to typeSize.f90.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page