[netcdfgroup] NetCDF: Windows Build problem

Hi,

I'm a new user of NetCDF, and I would like to use this file structure
in my *cross-platform
Fortran-2008 projects.*

*The C Library dependecy:*
So, first I downloaded the NetCDF-C binary installer, that is described as
a NetCDF-Fortran library dependency, and installed it in my machine.
After that I added the installed folder path to the Windows 10 environment
path.

I tested this running the: ncdump in the Windows console and it works good!

*The Fortran Library:*
Second, I cloned the NetCDF-Fortran github repositore and:
*a)* I opened the Windows console and went to the cloned folder
*b)* I created a new folder called: "build"
*c)* I entered in this "build" folder and typed: cmake ..

Then the CMake complete *all stuffs ok* and this process generated 54
Microsoft Visual Studio 2019 projects and *one Solution *inside the "build"
folder.

So, I opened the NC4F solution, and I right-clicked in the solution name and* I
clicked in the "Build" option.*

VS starts to compile the solution, but it gave to me a lot of compile-time
erros. *I attached here a print screen.*

What I'm doing wrong?
*How can I get the NetCDF-Fortran libraries (static and dynamic) to use
them in my Fortran-08 projects?*

*My system is:*
Windows 10 x64
Microsoft Visual Studio 2019
Intel Visual Fortran 2019

Thank you,

Nycholas Maia
Software Engineering
Labotarório de Máquinas Rotativas - LAMAR - FEM/UNICAMP
Cel.: +55 (19) 9.8888-4114

Attachment: fortran_build_errors.jpg
Description: JPEG image

  • 2019 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: