Code:
[ 4%] Building CXX object library/PolyVoxCore/CMakeFiles/PolyVoxCore.dir/source/GradientEstimators.cpp.o
In file included from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.h:191,
from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/PolyVoxImpl/Block.inl:29,
from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/PolyVoxImpl/Block.h:67,
from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/VolumeSampler.inl:27,
from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/VolumeSampler.h:109,
from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/GradientEstimators.h:29,
from /home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/source/GradientEstimators.cpp:24:
/home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.inl: In member function ‘PolyVox::uint32_t PolyVox::Volume<VoxelType>::calculateSizeInChars()’:
/home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.inl:393: error: expected ‘;’ before ‘iter’
/home/mfastovets/Random/PolyVox/PolyVox/trunk/library/PolyVoxCore/include/Volume.inl:393: error: ‘iter’ was not declared in this scope
make[2]: *** [library/PolyVoxCore/CMakeFiles/PolyVoxCore.dir/source/GradientEstimators.cpp.o] Error 1
make[1]: *** [library/PolyVoxCore/CMakeFiles/PolyVoxCore.dir/all] Error 2
make: *** [all] Error 2
This is what I get when I try to compile PolyVox. I'm not really sure what the problem is - I've even tried to rewrite that loop into a while loop but I still get the same error.
I'm on Ubuntu 9.10, using gcc 4.4.1, which may be a part of the problem (not sure). Help if you can!