netcdf-c/libsrc
Dennis Heimbigner c68c4c804d Fix undefined references when using Visual Studio
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.
2020-05-18 19:36:28 -06:00
..
attr.m4 Separate out the --ansi comment fixes. 2018-12-12 13:23:09 -07:00
CMakeLists.txt Changes to make it possible to nest this project inside of another CMake 2019-11-07 14:00:53 -07:00
depend
dim.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
ffio.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
httpio.c Provide byte-range reading of remote datasets 2019-01-01 18:27:36 -07:00
lookup3.c Follow-up trivial typos 2018-04-26 23:04:01 -04:00
Makefile.am Master merge, conflict resolution, cleanup 2019-02-24 16:54:13 -07:00
memio.c Fix MinGW build 2019-03-17 09:18:56 +01:00
mmapio.c Fix typo in mmapio.c 2019-05-04 21:09:59 -06:00
nc3dispatch.c Support no-op dispatch functions 2020-04-15 14:44:58 -06:00
nc3internal.c windows: detect Windows using the correct define name 2019-11-07 07:55:47 -05:00
ncFile.c windows: detect Windows using the correct define name 2019-11-07 07:55:47 -05:00
ncio.c Master merge, conflict resolution, cleanup 2019-02-24 16:54:13 -07:00
ncio.h Provide byte-range reading of remote datasets 2019-01-01 18:27:36 -07:00
ncstdio.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
ncstdio.h More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
ncx_cray.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
ncx.h More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
ncx.m4 re: github issues 2018-10-30 20:48:12 -06:00
posixio.c Spelling fixes 2019-09-18 08:03:01 -06:00
pstdint.h windows: detect Windows using the correct define name 2019-11-07 07:55:47 -05:00
putget.m4 took RELAX_COORD_BOUND out of libsrc code 2019-11-26 06:29:27 -07:00
t_ncio.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
t_ncio.in
t_ncxx.m4 More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
test_nc.sav
v1hpg.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
var.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
winceio.c More synchronization of copyright stanzas. 2018-12-06 14:34:40 -07:00
XGetopt.c Fix undefined references when using Visual Studio 2020-05-18 19:36:28 -06:00