c++ - Configure NetCDF on Visual Studio -
i'm working on c++ project handles weather data in netcdf format. downloaded netcdf binaries this link , installed it.
also configured vs project follows:
vc++ directories -> library directories = c:\program files (x86)\netcdf 4.3.3.1\bin;c:\program files (x86)\netcdf 4.3.3.1\lib;
c/c++ -> additional include directories = c:\program files (x86)\netcdf 4.3.3.1\include
linker -> input = netcdf.lib
but problem cannot access netcdf namespace.
using namespace netcdf; //gives error but accessing header files doesn't make trouble
#include <netcdf.h> //no error can me out on this..........
netcdf c-library, has no namespaces, such should remove "using namespace netcdf".