declaring arrays with visual C++ toolkit 2003
I am trying to create an array based off of a argument in one of my functions. Here is my code:
These are the errors I get:
void Engine::PrimitiveEnd(CUSTOMVERTEX* buffer, int vertnumber)
for (int i = 0; i < tempverts.size(); ++i)
verts[i].x = tempverts[i].x;
verts[i].y = tempverts[i].y;
verts[i].z = tempverts[i].z;
buffer = verts;
Engine.cpp(159) : error C2057: expected constant expression
Engine.cpp(159) : error C2466: cannot allocate an array of constant size 0
Engine.cpp(159) : error C2133: 'verts' : unknown size
But I only get this using the visual C++ toolkit 2003, but the GCC compiler does not give this error (but for reaons I can't use GCC).
How would I declare an array of "unknowen" size than.