Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 814 Bytes

compiler-warning-level-1-c4377.md

File metadata and controls

26 lines (20 loc) · 814 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4377
Compiler Warning (level 1) C4377
11/04/2016
C4377
C4377
a1c797b8-cd5e-4a56-b430-d07932e811cf

Compiler Warning (level 1) C4377

native types are private by default; -d1PrivateNativeTypes is deprecated

In previous releases, native types in assemblies were public by default, and an internal, undocumented compiler option (/d1PrivateNativeTypes) was used to make them private.

All types, native and CLR, are now private by default in an assembly, so /d1PrivateNativeTypes is no longer needed.

Example

The following sample generates C4377.

// C4377.cpp
// compile with: /clr /d1PrivateNativeTypes /W1
// C4377 warning expected
int main() {}