2

i'm trying to work with netCDF4.4.0-NC4-64.exe, I'm develop C++ MFC application on Visual Studio 2013 Debug mode.
I did exactly like the following answer:
Visual Studio - adding netCDF library

I'm trying to run simple code:

#include <netcdf.h>
...
void MyMethod()
{
   const char *ver = nc_inq_libvers();
}

But when i tried to compile application on Release (32bit) i got:

error LNK2001: unresolved external symbol _nc_inq_libvers

And on Debug mode:

error LNK2019: unresolved external symbol _nc_inq_libvers referenced in function...

And on 64bit Release/Debug:

error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

What is the problem?
Thanks

Community
  • 1
  • 1
Evyatar
  • 1,107
  • 2
  • 13
  • 36

1 Answers1

1

You are mixing 32- and 64-bits file versions. Try installing netcdf 3netCDF4.4.0-NC4-64.exe,

orion42
  • 11
  • 2