Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds support for building a native Radx library for Windows using MSVC 14.0 (Visual Studio 2015) and CMake. I am currently able to build Ncxx and Radx as static libraries and use basic functions as in RadxTest.cc.
Other than the build system, few changes needed to be made, summarized below:
ntohs()
.gettimeofday()
function for wall clock time with new C++11 code based on std::chrono, inRadxTime::set
andRadxTime::getCurrentTimeAsDouble
. Other approaches are possible here.strcasestr()
, based on strcasestr.c in FreeBSD, and dirent.h from tronkko/dirent. I wasn't sure where to fit these in the project structure, so I just put them under codebase/compat.I am using the following versions of external dependencies, all built as static libraries in release mode with CMake:
Also required is an implementation of pthreads for Win32. I am using pthreads-win32 from sourceware.org.
Remaining items:
pthread_mutex_lock
becomesEnterCriticalSection
.This work is still at an early stage, but review and comments on this pull request are much appreciated.
Thank you for your work on this nice library and making it available to the weather community.
John