I get the error "Error C2011 'timespec': 'struct' type redefinition" while compiling - Data2Dynamics/d2d GitHub Wiki

The library we use for threading (phreads) defines TIMESPEC. However, TIMESPEC defintions are already defined in some other header file on your system (we know that this happens with MSVC2017 Community edition for instance). The solution is to add a compilation flag which avoids redefinition of TIMESPEC during compilation.

To solve this issue, call arNewMSVC after each arInit.