mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +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. |
||
---|---|---|
.. | ||
attr.m4 | ||
CMakeLists.txt | ||
depend | ||
dim.c | ||
ffio.c | ||
httpio.c | ||
lookup3.c | ||
Makefile.am | ||
memio.c | ||
mmapio.c | ||
nc3dispatch.c | ||
nc3internal.c | ||
ncFile.c | ||
ncio.c | ||
ncio.h | ||
ncstdio.c | ||
ncstdio.h | ||
ncx_cray.c | ||
ncx.h | ||
ncx.m4 | ||
posixio.c | ||
pstdint.h | ||
putget.m4 | ||
t_ncio.c | ||
t_ncio.in | ||
t_ncxx.m4 | ||
test_nc.sav | ||
v1hpg.c | ||
var.c | ||
winceio.c | ||
XGetopt.c |