We recommend using Visual Studio 2017

Compiler Error C3186


The latest version of this topic can be found at Visual Studio 2017 Documentation. multi-dimensional native array is not allowed

A native multidimensional array was declared incorrectly.

The following sample generates C3186:

// C3186.cpp  
// compile with: /clr  
#using <mscorlib.dll>  
int main()  
   int a[,];   // C3186  
   int b[2][3];   // native multidimension array  
   array<int,2> ^c = new array<int, 2>(2,5);   // managed multidimension array