Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

0 votes

An array dimension was not between 1 and 32. Ex:


// compile with: /clr
int main() {
   array<int, -1>^a;   // C2739
}

requested by (170k points)

2 Solutions

0 votes

This article is a derivative work based on http://msdn.microsoft.com/en-us/library/1538b66b.aspx" title="http://msdn.microsoft.com/en-us/library/1538b66b.aspx" target="_blank">Compiler Error C2739 which is provided by http://msdn.microsoft.com/en-us/library/60k1461a.aspx" title="http://msdn.microsoft.com/en-us/library/60k1461a.aspx" target="_blank">MSDN Community Content - Visual C++.

solved by (170k points)
0 votes

Possible resolution:


// compile with: /clr
int main() {
   array<int, 2>^a;
}

solved by (170k points)
...