Skip to content

I get the error "Error C2011 'timespec': 'struct' type redefinition" while compiling

Joep Vanlier edited this page Oct 25, 2017 · 2 revisions

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.

Clone this wiki locally