diff --git a/nctest/CMakeLists.txt b/nctest/CMakeLists.txt index c01c84867..f02d5ede9 100644 --- a/nctest/CMakeLists.txt +++ b/nctest/CMakeLists.txt @@ -5,6 +5,7 @@ INCLUDE_DIRECTORIES(".") IF(ENABLE_DLL) ADD_DEFINITIONS(-DDLL_NETCDF) + REMOVE_DEFINITIONS(-DDLL_EXPORT) ENDIF() SET(nctest_SRC add.c atttests.c cdftests.c dimtests.c driver.c emalloc.c error.c misctest.c rec.c slabs.c val.c vardef.c varget.c vargetg.c varput.c varputg.c vartests.c vputget.c vputgetg.c) diff --git a/nctest/driver.c b/nctest/driver.c index a9aaffdb2..a025edf13 100644 --- a/nctest/driver.c +++ b/nctest/driver.c @@ -18,9 +18,6 @@ #include "testcdf.h" /* defines in-memory test netcdf structure */ #include "tests.h" -//int ncopts = 0;//(NC_FATAL | NC_VERBOSE); -//int ncerr = NC_NOERR; - /* Test everything for classic and 64-bit offsetfiles. If netcdf-4 is * included, that means another whole round of testing. */ #ifdef USE_NETCDF4 @@ -29,14 +26,10 @@ #define NUM_FORMATS (2) #endif -EXTERNL int ncopts; -EXTERNL int ncerr; - - int main(int argc, char **argv) { - //EXTERNL int ncopts; /* netCDF error options */ + //EXTERNL int ncopts; /* netCDF error options */ char *testfiles[] = {"nonesuch", "nctest_classic.nc", "nctest_64bit_offset.nc", "nctest_netcdf4.nc"}; char *testfile;