.net - Error <mutex> is not supported when compiling with /clr or /clr:pure -


I have C ++ dll, which I will call Del A where I have used:

  Add # & lt; Mutex & gt;  

The DLL value is set to "No common language is runtime support" and it builds successfully.

I have another DL B, which includes the properties of DLL A DLL BS in this context: "Common Language Runtime Support (CLR)" Because it contains the C ++ / CLI code.

When I create DLL BI, I get an error: C: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ VC \ include \ mutex (8): Fatal Error C1189 : #Terror: & lt; Mutex & gt; / CLR or / clr: compiled with Pure is not supported at the time.

I know that I can not include CLR in the DLL but in a way I can get this problem to refer to it Dll is included in it?


Comments