diff --git a/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h b/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h index 24499451..572cb0f1 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h +++ b/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h @@ -30,6 +30,7 @@ freely, subject to the following restrictions: #include "PolyVoxCore/Array.h" #include +#include //For runtime_error namespace PolyVox { diff --git a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.h b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.h index dac1004e..ba6e5523 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.h +++ b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.h @@ -163,7 +163,7 @@ namespace PolyVox #if defined(_MSC_VER) class Sampler : public Volume::Sampler< LargeVolume > //This line works on VS2010 #else - class Sampler : public Volume::Sampler Nested< LargeVolume > //This line works on GCC + class Sampler : public Volume::template Sampler< LargeVolume > //This line works on GCC #endif { public: diff --git a/library/PolyVoxCore/include/PolyVoxCore/MeshDecimator.inl b/library/PolyVoxCore/include/PolyVoxCore/MeshDecimator.inl index 367c5379..211e281b 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/MeshDecimator.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/MeshDecimator.inl @@ -259,9 +259,9 @@ namespace PolyVox bool MeshDecimator::collapseChangesFaceNormals(uint32_t uSrc, uint32_t uDst, float fThreshold) { bool faceFlipped = false; - vector& triangles = trianglesUsingVertex[uSrc]; + std::vector& triangles = trianglesUsingVertex[uSrc]; - for(vector::iterator triIter = triangles.begin(); triIter != triangles.end(); triIter++) + for(std::vector::iterator triIter = triangles.begin(); triIter != triangles.end(); triIter++) { uint32_t tri = *triIter; diff --git a/library/PolyVoxCore/include/PolyVoxCore/RawVolume.h b/library/PolyVoxCore/include/PolyVoxCore/RawVolume.h index de56e31e..f5106e7d 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/RawVolume.h +++ b/library/PolyVoxCore/include/PolyVoxCore/RawVolume.h @@ -52,7 +52,7 @@ namespace PolyVox #if defined(_MSC_VER) class Sampler : public Volume::Sampler< RawVolume > //This line works on VS2010 #else - class Sampler : public Volume::Sampler Nested< RawVolume > //This line works on GCC + class Sampler : public Volume::template Sampler< RawVolume > //This line works on GCC #endif { public: diff --git a/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.h b/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.h index 58efadc6..6ddeedb5 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.h +++ b/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.h @@ -77,7 +77,7 @@ namespace PolyVox #if defined(_MSC_VER) class Sampler : public Volume::Sampler< SimpleVolume > //This line works on VS2010 #else - class Sampler : public Volume::Sampler Nested< SimpleVolume > //This line works on GCC + class Sampler : public Volume::template Sampler< SimpleVolume > //This line works on GCC #endif { public: diff --git a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h index 1e0fa526..f223f41b 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h +++ b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h @@ -24,6 +24,8 @@ freely, subject to the following restrictions: #ifndef __PolyVox_VolumeResampler_H__ #define __PolyVox_VolumeResampler_H__ +#include + namespace PolyVox { template< template class SrcVolumeType, template class DestVolumeType, typename VoxelType> diff --git a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl index 6842c78f..9a5ffdeb 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl @@ -119,7 +119,8 @@ namespace PolyVox uint8_t voxel110Den = voxel110.getDensity(); uint8_t voxel111Den = voxel111.getDensity(); - float dummy; + //FIXME - should accept all float parameters, but GCC complains? + double dummy; sx = modf(sx, &dummy); sy = modf(sy, &dummy); sz = modf(sz, &dummy);