Hello,
I'm getting the following error
Code:
error C2079: 'PolyVox::BaseVolume<_VoxelType>::m_tBorderValue' uses undefined class 'PolyVox::MaterialDensityPair<Type,NoOfMaterialBits,NoOfDensityBits>' d:\stuff\polyvox\polyvoxcore\include\polyvoxcore\basevolume.h
When calling
Code:
PolyVox::saveVolume<PolyVox::LargeVolume<VoxelType>>(outstream, *volData);
VoxelType is a typedef of MaterialDensity44, I have tried using that instead and MaterialDensity<uint8_t,4,4>, and both gave the same error.
I've also tried using 2.2.1 instead of the latest development build and get the same error.
I'm not sure what I'm doing wrong so hopefully someone can shed some light on this.
The full error from the build output is:
Code:
1>d:\stuff\polyvox\polyvoxcore\include\polyvoxcore\basevolume.h(210): error C2079: 'PolyVox::BaseVolume<_VoxelType>::m_tBorderValue' uses undefined class 'PolyVox::MaterialDensityPair<Type,NoOfMaterialBits,NoOfDensityBits>'
1> with
1> [
1> _VoxelType=VoxelType
1> ]
1> and
1> [
1> Type=uint8_t,
1> NoOfMaterialBits=4,
1> NoOfDensityBits=4
1> ]
1> d:\stuff\polyvox\polyvoxcore\include\polyvoxcore\largevolume.h(158) : see reference to class template instantiation 'PolyVox::BaseVolume<_VoxelType>' being compiled
1> with
1> [
1> _VoxelType=VoxelType
1> ]
1> d:\stuff\polyvox\polyvoxutil\include\polyvoxutil\serialization.inl(302) : see reference to class template instantiation 'PolyVox::LargeVolume<VoxelType>' being compiled
1> with
1> [
1> VoxelType=VoxelType
1> ]
1> c:\users\ben\documents\visual studio 2012\projects\voxworld\voxworld\chunkio.cpp(25) : see reference to function template instantiation 'bool PolyVox::saveVolume<PolyVox::LargeVolume<VoxelType>>(std::ostream &,VolumeType &,PolyVox::VolumeSerializationProgressListener *)' being compiled
1> with
1> [
1> VoxelType=VoxelType,
1> VolumeType=PolyVox::LargeVolume<VoxelType>
1> ]
Thanks!