mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-12 15:45:21 +08:00
c68c4c804d
Fix Issue https://github.com/Unidata/netcdf-c/issues/1725. Replace PR https://github.com/Unidata/netcdf-c/pull/1726 Also replace PR https://github.com/Unidata/netcdf-c/pull/1694 The general problem is that under Visual Studio, we are seeing a number of undefined reference and other scoping errors. The reason is that the code is not properly using Visual Studio _declspec() declarations. The basic solution is to ensure that when compiling the code itself one needs to ensure that _declspec(dllexport) is used. There are several sets of macros to handle this, but they all rely on the flag DLL_EXPORT being define when the code is compiled, but not being defined when the code is used via a .h file. As a test, I modified XGetOpt.c to build properly. I also fixed the oc2 library to properly _declspec things like ocdebug. I also made some misc. changes to get all the tests to run if cygwin is installed (to get bash, sed, etc). Misc. Changes: * Put XGetOpt.c into libsrc and copy at build time to the other directories where it is needed. |
||
---|---|---|
.. | ||
bigf1.cdl | ||
bigf2.cdl | ||
bigf3.cdl | ||
bigr1.cdl | ||
bigr2.cdl | ||
bigr3.cdl | ||
c0.cdl | ||
CMakeLists.txt | ||
depend | ||
escapes.c | ||
generic.h | ||
genlib.c | ||
genlib.h | ||
getfill.c | ||
init.c | ||
lfs-tests | ||
load.c | ||
main.c | ||
Makefile.am | ||
ncgen3.1 | ||
ncgen.h | ||
ncgen.l | ||
ncgen.y | ||
ncgentab.c | ||
ncgentab.h | ||
ncgenyy.c | ||
run_nc4_tests.sh | ||
run_tests2.sh | ||
run_tests.sh |