/clr error when compiling C++ project with Rhino SDK 6.12.19029.06381


The latest Rhino SDK update rh612sdk_6.12.19029.06381 gives the following error when compiling a project with Common Language Runtime Support (/clr):

1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thread(8): fatal error C1189: #error: <thread> is not supported when compiling with /clr or /clr:pure.

This error is not present in previous SDK I had, rh611sdk_6.11.18344.20091. Any idea about what’s happening? /clr is a must in my project.

Many thanks,

Indeed it appears at some point that header got included. Thanks for reporting, I have logged this as RH-51076.

@dalelear you probably should try to get this working without having the header included in the SDK.

Before including any Rhino SDK headers, in stdafx.h, define this:


– Dale