hi,
i might have skipped a class at C++ 101, i have this very basic problem i dont
understand how to solve.
int sampleTest = 1;
Vector3D randomArray[sampleTest];
gives me an error:
1>.\RayTracer.cpp(176) : error C2057: expected constant expression
1>.\RayTracer.cpp(176) : error C2466: cannot allocate an array of constant size
0
1>.\RayTracer.cpp(176) : error C2133: 'randomArray' : unknown size
while
Vector3D randomArray[3];
works fine. the previous code works fine on osx environment (GCC4.0), but when
i
run it on VS2K8 it gives me the errors above.
can any1 help me?
thanks in advance.
=================================
http://www.svnstrk.blogspot.com
[Non-text portions of this message have been removed]