NetCDF Visual Studio 2013 我尝试使用 NETCDF4.4.0 NC4-64 .exe < /C>,我在Visual Studio 2013调试模式下开发C++ MFC应用程序。 我的回答与下面的完全一样: 我正在尝试运行简单的代码: #include <netcdf.h> ... void MyMethod() { const char *ver = nc_inq_libvers(); }

NetCDF Visual Studio 2013 我尝试使用 NETCDF4.4.0 NC4-64 .exe < /C>,我在Visual Studio 2013调试模式下开发C++ MFC应用程序。 我的回答与下面的完全一样: 我正在尝试运行简单的代码: #include <netcdf.h> ... void MyMethod() { const char *ver = nc_inq_libvers(); },c++,visual-studio,visual-studio-2013,netcdf,C++,Visual Studio,Visual Studio 2013,Netcdf,并在Debugmode: error LNK2019: unresolved external symbol _nc_inq_libvers referenced in function... 在64位发布/调试时: error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' 有什么问题吗?谢谢您正在混合使用32位和64位文件版本。尝试安装netcdf 3netCDF4.4.0-NC4-6

并在
Debug
mode:

error LNK2019: unresolved external symbol _nc_inq_libvers referenced in function...
在64位发布/调试时:

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

有什么问题吗?
谢谢

您正在混合使用32位和64位文件版本。尝试安装netcdf 3netCDF4.4.0-NC4-64.exe

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