नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'function': cannot compile an unmanaged function with /clr:pure or /clr:safe
Remarks
The /clr:pure and /clr:safe compiler options are deprecated in Visual Studio 2015 and unsupported in Visual Studio 2017.
A compilation with /clr:pure or /clr:safe will produce an MSIL only image, an image with no native (unmanaged) code. Therefore, you cannot use the unmanaged pragma in a /clr:pure or /clr:safe compilation.
For more information, see /clr (Common Language Runtime Compilation) and managed, unmanaged.
Example
The following example generates C3862:
// C3862.cpp
// compile with: /clr:pure /c
#pragma unmanaged
void f() {} // C3862