Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.04 KB

compiler-warning-c4936.md

File metadata and controls

33 lines (24 loc) · 1.04 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning C4936
Compiler Warning C4936
11/04/2016
C4936
C4936
6676de35-bf1b-4d0b-a70f-b5734130336c

Compiler Warning C4936

this __declspec is supported only when compiled with /clr or /clr:pure

Remarks

The /clr:pure compiler option is deprecated in Visual Studio 2015 and unsupported in Visual Studio 2017.

A __declspec modifier was used but that __declspec modifier is only valid when compiled with one of the /clr options.

For more information, see appdomain and process.

C4936 is always issued as an error. You can disable C4936 with the warning pragma.

Example

The following sample generates C4936:

// C4936.cpp
// compile with: /c
// #pragma warning (disable : 4936)
__declspec(process) int i;   // C4936
__declspec(appdomain) int j;   // C4936