Hello!
I'm new to PolyVox and trying to get it to work in Linux Mono C#
I have been trying to use Mono.CXXI to use it under Ubuntu, as normal wrappers would not work here. In order to do so I will have to generate an XML file of the includes using GCCXML. But when I try to use the following command $ gccxml polyvox.h -fxml=polyvox.xml --gccxml-cxxflags -std=c++0x
polyvox.h:
Code:
#include <stdint.h>
#include "TypeDef.h"
#include "Utility.h"
#include "ArraySizesImpl.h"
#include "AstarPathfinderImpl.h"
#include "Block.h"
#include "MarchingCubesTables.h"
#include "RandomUnitVectors.h"
#include "RandomVectors.h"
#include "SubArray.h"
#include "Voxel.h"
#include "Array.h"
#include "ArraySizes.h"
#include "Vector.h"
#include "Region.h"
#include "AmbientOcclusionCalculator.h"
#include "AStarPathfinder.h"
#include "BaseVolume.h"
#include "ConstVolumeProxy.h"
#include "CubicSurfaceExtractor.h"
#include "CubicSurfaceExtractorWithNormals.h"
#include "Density.h"
#include "GradientEstimators.h"
#include "IteratiorController.h"
#include "LargeVolume.h"
#include "Log.h"
#include "LowPassFilter.h"
#include "Material.h"
#include "MaterialDensityPair.h"
#include "MeshDecimator.h"
#include "PolyVoxForwardDeclarations.h"
#include "RawVolume.h"
#include "Raycast.h"
#include "RaycastWithCallback.h"
#include "SimpleInterface.h"
#include "SimpleVolume.h"
#include "SurfaceEdge.h"
#include "SurfaceExtractor.h"
#include "SurfaceMesh.h"
#include "SurfaceTypes.h"
#include "VertexTypes.h"
#include "VolumeResampler.h"
#include "VoxelFilters.h"
I end up with thousands of errors (some end up outside the terminal):
Code:
)
/usr/include/c++/4.6/cmath:176: note: long double std::std::ceil(long double)
/usr/include/c++/4.6/bits/random.tcc:1268: error: call of overloaded 'ceil(const double&)' is ambiguous
/usr/include/c++/4.6/cmath:172: note: candidates are: float std::std::ceil(float)
/usr/include/c++/4.6/cmath:176: note: long double std::std::ceil(long double)
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_ostream<_CharT, _Traits>& std::std::operator<<(std::std::basic_ostream<_CharT, _Traits>&, const std::std::poisson_distribution<_IntType>&)':
/usr/include/c++/4.6/bits/random.tcc:1313: error: 'max_digits10' is not a member of 'std::std::numeric_limits<double>'
/usr/include/c++/4.6/bits/random.tcc: In member function 'void std::std::binomial_distribution<_IntType>::param_type::_M_initialize()':
/usr/include/c++/4.6/bits/random.tcc:1364: error: call of overloaded 'log(double&)' is ambiguous
/usr/include/c++/4.6/cmath:310: note: candidates are: float std::std::log(float)
/usr/include/c++/4.6/cmath:314: note: long double std::std::log(long double)
/usr/include/c++/4.6/bits/random.tcc:1373: error: call of overloaded 'sqrt(double&)' is ambiguous
/usr/include/c++/4.6/cmath:422: note: candidates are: float std::std::sqrt(float)
/usr/include/c++/4.6/cmath:426: note: long double std::std::sqrt(long double)
/usr/include/c++/4.6/bits/random.tcc:1374: error: call of overloaded 'sqrt(double&)' is ambiguous
/usr/include/c++/4.6/cmath:422: note: candidates are: float std::std::sqrt(float)
/usr/include/c++/4.6/cmath:426: note: long double std::std::sqrt(long double)
/usr/include/c++/4.6/bits/random.tcc:1376: error: call of overloaded 'exp(double&)' is ambiguous
/usr/include/c++/4.6/cmath:220: note: candidates are: float std::std::exp(float)
/usr/include/c++/4.6/cmath:224: note: long double std::std::exp(long double)
/usr/include/c++/4.6/bits/random.tcc:1381: error: call of overloaded 'exp(double&)' is ambiguous
/usr/include/c++/4.6/cmath:220: note: candidates are: float std::std::exp(float)
/usr/include/c++/4.6/cmath:224: note: long double std::std::exp(long double)
/usr/include/c++/4.6/bits/random.tcc:1384: error: call of overloaded 'exp(double&)' is ambiguous
/usr/include/c++/4.6/cmath:220: note: candidates are: float std::std::exp(float)
/usr/include/c++/4.6/cmath:224: note: long double std::std::exp(long double)
/usr/include/c++/4.6/bits/random.tcc:1387: error: call of overloaded 'log(double&)' is ambiguous
/usr/include/c++/4.6/cmath:310: note: candidates are: float std::std::log(float)
/usr/include/c++/4.6/cmath:314: note: long double std::std::log(long double)
/usr/include/c++/4.6/bits/random.tcc:1389: error: call of overloaded 'log(double&)' is ambiguous
/usr/include/c++/4.6/cmath:310: note: candidates are: float std::std::log(float)
/usr/include/c++/4.6/cmath:314: note: long double std::std::log(long double)
/usr/include/c++/4.6/bits/random.tcc:1393: error: call of overloaded 'log(double&)' is ambiguous
/usr/include/c++/4.6/cmath:310: note: candidates are: float std::std::log(float)
/usr/include/c++/4.6/cmath:314: note: long double std::std::log(long double)
/usr/include/c++/4.6/bits/random.tcc: In member function 'typename std::std::binomial_distribution<_IntType>::result_type std::std::binomial_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&, const std::std::binomial_distribution<_IntType>::param_type&)':
/usr/include/c++/4.6/bits/random.tcc:1449: error: 'epsilon' is not a member of 'std::std::numeric_limits<double>'
/usr/include/c++/4.6/bits/random.tcc:1478: error: call of overloaded 'floor(const double&)' is ambiguous
/usr/include/c++/4.6/cmath:252: note: candidates are: float std::std::floor(float)
/usr/include/c++/4.6/cmath:256: note: long double std::std::floor(long double)
/usr/include/c++/4.6/bits/random.tcc:1490: error: call of overloaded 'floor(double&)' is ambiguous
/usr/include/c++/4.6/cmath:252: note: candidates are: float std::std::floor(float)
/usr/include/c++/4.6/cmath:256: note: long double std::std::floor(long double)
/usr/include/c++/4.6/bits/random.tcc:1501: error: call of overloaded 'floor(const double&)' is ambiguous
/usr/include/c++/4.6/cmath:252: note: candidates are: float std::std::floor(float)
/usr/include/c++/4.6/cmath:256: note: long double std::std::floor(long double)
/usr/include/c++/4.6/bits/random.tcc:1513: error: call of overloaded 'floor(double&)' is ambiguous
/usr/include/c++/4.6/cmath:252: note: candidates are: float std::std::floor(float)
/usr/include/c++/4.6/cmath:256: note: long double std::std::floor(long double)
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_ostream<_CharT, _Traits>& std::std::operator<<(std::std::basic_ostream<_CharT, _Traits>&, const std::std::binomial_distribution<_IntType>&)':
/usr/include/c++/4.6/bits/random.tcc:1561: error: 'max_digits10' is not a member of 'std::std::numeric_limits<double>'
/usr/include/c++/4.6/bits/random.tcc: In member function 'void std::std::discrete_distribution<_IntType>::param_type::_M_initialize()':
/usr/include/c++/4.6/bits/random.tcc:2232: error: 'bind2nd' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2232: error: 'divides' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2232: error: expected primary-expression before 'double'
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_ostream<_CharT, _Traits>& std::std::operator<<(std::std::basic_ostream<_CharT, _Traits>&, const std::std::discrete_distribution<_IntType>&)':
/usr/include/c++/4.6/bits/random.tcc:2291: error: 'max_digits10' is not a member of 'std::std::numeric_limits<double>'
/usr/include/c++/4.6/bits/random.tcc:2295: error: no match for 'operator!=' in '__dit != __prob.std::std::vector<_Tp, _Alloc>::end [with _Tp = double, _Alloc = std::std::allocator<double>]()'
/usr/include/c++/4.6/bits/random.h:3347: note: candidates are: bool std::std::operator!=(const std::std::bernoulli_distribution&, const std::std::bernoulli_distribution&)
/usr/include/c++/4.6/bits/random.tcc:2296: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_istream<_CharT, _Traits>& std::std::operator>>(std::std::basic_istream<_CharT, _Traits>&, std::std::discrete_distribution<_IntType>&)':
/usr/include/c++/4.6/bits/random.tcc:2324: error: call of overloaded 'push_back(double&)' is ambiguous
/usr/include/c++/4.6/bits/stl_vector.h:826: note: candidates are: void std::std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/stl_vector.h:839: note: void std::std::vector<_Tp, _Alloc>::push_back(_Tp) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/random.tcc: In member function 'void std::std::piecewise_constant_distribution<_RealType>::param_type::_M_initialize()':
/usr/include/c++/4.6/bits/random.tcc:2354: error: 'bind2nd' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2354: error: 'divides' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2354: error: expected primary-expression before 'double'
/usr/include/c++/4.6/bits/random.tcc: In constructor 'std::std::piecewise_constant_distribution<_RealType>::param_type::param_type(std::initializer_list<_Tp>, _Func)':
/usr/include/c++/4.6/bits/random.tcc:2400: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_ostream<_CharT, _Traits>& std::std::operator<<(std::std::basic_ostream<_CharT, _Traits>&, const std::std::piecewise_constant_distribution<_RealType>&)':
/usr/include/c++/4.6/bits/random.tcc:2472: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc:2475: error: no match for 'operator!=' in '__dit != __den.std::std::vector<_Tp, _Alloc>::end [with _Tp = double, _Alloc = std::std::allocator<double>]()'
/usr/include/c++/4.6/bits/random.h:3347: note: candidates are: bool std::std::operator!=(const std::std::bernoulli_distribution&, const std::std::bernoulli_distribution&)
/usr/include/c++/4.6/bits/random.tcc:2476: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_istream<_CharT, _Traits>& std::std::operator>>(std::std::basic_istream<_CharT, _Traits>&, std::std::piecewise_constant_distribution<_RealType>&)':
/usr/include/c++/4.6/bits/random.tcc:2513: error: call of overloaded 'push_back(double&)' is ambiguous
/usr/include/c++/4.6/bits/stl_vector.h:826: note: candidates are: void std::std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/stl_vector.h:839: note: void std::std::vector<_Tp, _Alloc>::push_back(_Tp) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/random.tcc: In member function 'void std::std::piecewise_linear_distribution<_RealType>::param_type::_M_initialize()':
/usr/include/c++/4.6/bits/random.tcc:2547: error: call of overloaded 'push_back(double&)' is ambiguous
/usr/include/c++/4.6/bits/stl_vector.h:826: note: candidates are: void std::std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/stl_vector.h:839: note: void std::std::vector<_Tp, _Alloc>::push_back(_Tp) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/random.tcc:2553: error: 'bind2nd' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2553: error: 'divides' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2553: error: expected primary-expression before 'double'
/usr/include/c++/4.6/bits/random.tcc:2556: error: 'bind2nd' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2556: error: 'divides' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2556: error: expected primary-expression before 'double'
/usr/include/c++/4.6/bits/random.tcc:2559: error: 'bind2nd' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2559: error: 'divides' is not a member of 'std::std'
/usr/include/c++/4.6/bits/random.tcc:2559: error: expected primary-expression before 'double'
/usr/include/c++/4.6/bits/random.tcc: In constructor 'std::std::piecewise_linear_distribution<_RealType>::param_type::param_type(std::initializer_list<_Tp>, _Func)':
/usr/include/c++/4.6/bits/random.tcc:2591: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc:2592: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc: In member function 'typename std::std::piecewise_linear_distribution<_RealType>::result_type std::std::piecewise_linear_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&, const std::std::piecewise_linear_distribution<_RealType>::param_type&)':
/usr/include/c++/4.6/bits/random.tcc:2648: error: call of overloaded 'sqrt(const double&)' is ambiguous
/usr/include/c++/4.6/cmath:422: note: candidates are: float std::std::sqrt(float)
/usr/include/c++/4.6/cmath:426: note: long double std::std::sqrt(long double)
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_ostream<_CharT, _Traits>& std::std::operator<<(std::std::basic_ostream<_CharT, _Traits>&, const std::std::piecewise_linear_distribution<_RealType>&)':
/usr/include/c++/4.6/bits/random.tcc:2674: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc:2677: error: no match for 'operator!=' in '__dit != __den.std::std::vector<_Tp, _Alloc>::end [with _Tp = double, _Alloc = std::std::allocator<double>]()'
/usr/include/c++/4.6/bits/random.h:3347: note: candidates are: bool std::std::operator!=(const std::std::bernoulli_distribution&, const std::std::bernoulli_distribution&)
/usr/include/c++/4.6/bits/random.tcc:2678: error: invalid type argument of 'unary *'
/usr/include/c++/4.6/bits/random.tcc: In function 'std::std::basic_istream<_CharT, _Traits>& std::std::operator>>(std::std::basic_istream<_CharT, _Traits>&, std::std::piecewise_linear_distribution<_RealType>&)':
/usr/include/c++/4.6/bits/random.tcc:2715: error: call of overloaded 'push_back(double&)' is ambiguous
/usr/include/c++/4.6/bits/stl_vector.h:826: note: candidates are: void std::std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/stl_vector.h:839: note: void std::std::vector<_Tp, _Alloc>::push_back(_Tp) [with _Tp = double, _Alloc = std::std::allocator<double>]
/usr/include/c++/4.6/bits/random.tcc: At global scope:
/usr/include/c++/4.6/bits/random.tcc:2727: error: expected `)' before '<' token
/usr/include/c++/4.6/bits/random.tcc: In constructor 'std::std::seed_seq::seed_seq(_InputIterator, _InputIterator)':
/usr/include/c++/4.6/bits/random.tcc:2739: error: 'digits' is not a member of 'std::std::numeric_limits<unsigned int>'
/usr/include/c++/4.6/bits/random.tcc:2739: error: template argument 3 is invalid
In file included from /usr/include/c++/4.6/algorithm:63,
from ArraySizesImpl.inl:24,
from ArraySizesImpl.h:59,
from polyvox.h:6:
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: In function 'std::pair<_FIter, _FIter> std::std::minmax_element(_FIter, _FIter)':
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:3948: error: 'make_pair' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:3996: error: 'make_pair' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: In function 'std::pair<_FIter, _FIter> std::std::minmax_element(_FIter, _FIter, _Compare)':
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4026: error: 'make_pair' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4074: error: 'make_pair' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: In function 'std::pair<_FIter, _FIter> std::std::minmax(std::initializer_list<_Tp>)':
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4104: error: 'make_pair' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: In function 'std::pair<_FIter, _FIter> std::std::minmax(std::initializer_list<_Tp>, _Compare)':
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4113: error: 'make_pair' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: In function 'bool std::std::is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate)':
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4193: error: 'std::std::placeholders' has not been declared
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4196: error: 'bind' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4196: error: '_1' was not declared in this scope
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4200: error: 'bind' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4200: error: '_1' was not declared in this scope
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4203: error: 'bind' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: At global scope:
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4226: error: expected ',' or '...' before '&&' token
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: In function 'void std::std::shuffle(_RAIter, _RAIter, _UGenerator)':
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4239: error: 'make_unsigned' in namespace 'std::std' does not name a type
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4239: error: expected unqualified-id before '<' token
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4240: error: '__ud_type' was not declared in this scope
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4240: error: template argument 1 is invalid
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4240: error: invalid type in declaration before ';' token
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4241: error: '__distr_type' is not a class or namespace
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4241: error: invalid type in declaration before ';' token
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4245: error: '__g' was not declared in this scope
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:4245: error: '__d' cannot be used as a function
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: In function 'void std::std::random_shuffle(_RAIter, _RAIter)':
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:5046: error: 'rand' is not a member of 'std::std'
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h: At global scope:
/usr/share/gccxml-0.9/GCC/4.6/bits/stl_algo.h:5067: error: expected ',' or '...' before '&&' token
In file included from Vector.h:31,
from Block.h:28,
from polyvox.h:8:
/usr/include/c++/4.6/cstring:77: error: '::memchr' has not been declared
/usr/include/c++/4.6/cstring:78: error: '::memcmp' has not been declared
/usr/include/c++/4.6/cstring:79: error: '::memcpy' has not been declared
/usr/include/c++/4.6/cstring:80: error: '::memmove' has not been declared
/usr/include/c++/4.6/cstring:81: error: '::memset' has not been declared
/usr/include/c++/4.6/cstring:82: error: '::strcat' has not been declared
/usr/include/c++/4.6/cstring:83: error: '::strcmp' has not been declared
/usr/include/c++/4.6/cstring:84: error: '::strcoll' has not been declared
/usr/include/c++/4.6/cstring:85: error: '::strcpy' has not been declared
/usr/include/c++/4.6/cstring:86: error: '::strcspn' has not been declared
/usr/include/c++/4.6/cstring:87: error: '::strerror' has not been declared
/usr/include/c++/4.6/cstring:88: error: '::strlen' has not been declared
/usr/include/c++/4.6/cstring:89: error: '::strncat' has not been declared
/usr/include/c++/4.6/cstring:90: error: '::strncmp' has not been declared
/usr/include/c++/4.6/cstring:91: error: '::strncpy' has not been declared
/usr/include/c++/4.6/cstring:92: error: '::strspn' has not been declared
/usr/include/c++/4.6/cstring:93: error: '::strtok' has not been declared
/usr/include/c++/4.6/cstring:94: error: '::strxfrm' has not been declared
/usr/include/c++/4.6/cstring:95: error: '::strchr' has not been declared
/usr/include/c++/4.6/cstring:96: error: '::strpbrk' has not been declared
/usr/include/c++/4.6/cstring:97: error: '::strrchr' has not been declared
/usr/include/c++/4.6/cstring:98: error: '::strstr' has not been declared
In file included from /usr/include/c++/4.6/ios:43,
from /usr/include/c++/4.6/ostream:40,
from /usr/include/c++/4.6/iostream:40,
from Vector.h:32,
from Block.h:28,
from polyvox.h:8:
/usr/include/c++/4.6/bits/ios_base.h:76: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:80: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:84: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:88: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Fmtflags& std::std::operator|=(std::std::_Ios_Fmtflags&, std::std::_Ios_Fmtflags)':
/usr/include/c++/4.6/bits/ios_base.h:94: error: invalid conversion from 'int' to 'std::std::_Ios_Fmtflags'
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Fmtflags& std::std::operator&=(std::std::_Ios_Fmtflags&, std::std::_Ios_Fmtflags)':
/usr/include/c++/4.6/bits/ios_base.h:98: error: invalid conversion from 'int' to 'std::std::_Ios_Fmtflags'
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Fmtflags& std::std::operator^=(std::std::_Ios_Fmtflags&, std::std::_Ios_Fmtflags)':
/usr/include/c++/4.6/bits/ios_base.h:102: error: invalid conversion from 'int' to 'std::std::_Ios_Fmtflags'
/usr/include/c++/4.6/bits/ios_base.h: At global scope:
/usr/include/c++/4.6/bits/ios_base.h:116: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:120: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:124: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:128: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Openmode& std::std::operator|=(std::std::_Ios_Openmode&, std::std::_Ios_Openmode)':
/usr/include/c++/4.6/bits/ios_base.h:134: error: invalid conversion from 'int' to 'std::std::_Ios_Openmode'
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Openmode& std::std::operator&=(std::std::_Ios_Openmode&, std::std::_Ios_Openmode)':
/usr/include/c++/4.6/bits/ios_base.h:138: error: invalid conversion from 'int' to 'std::std::_Ios_Openmode'
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Openmode& std::std::operator^=(std::std::_Ios_Openmode&, std::std::_Ios_Openmode)':
/usr/include/c++/4.6/bits/ios_base.h:142: error: invalid conversion from 'int' to 'std::std::_Ios_Openmode'
/usr/include/c++/4.6/bits/ios_base.h: At global scope:
/usr/include/c++/4.6/bits/ios_base.h:154: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:158: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:162: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h:166: error: 'constexpr' does not name a type
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Iostate& std::std::operator|=(std::std::_Ios_Iostate&, std::std::_Ios_Iostate)':
/usr/include/c++/4.6/bits/ios_base.h:172: error: invalid conversion from 'int' to 'std::std::_Ios_Iostate'
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Iostate& std::std::operator&=(std::std::_Ios_Iostate&, std::std::_Ios_Iostate)':
/usr/include/c++/4.6/bits/ios_base.h:176: error: invalid conversion from 'int' to 'std::std::_Ios_Iostate'
/usr/include/c++/4.6/bits/ios_base.h: In function 'const std::std::_Ios_Iostate& std::std::operator^=(std::std::_Ios_Iostate&, std::std::_Ios_Iostate)':
/usr/include/c++/4.6/bits/ios_base.h:180: error: invalid conversion from 'int' to 'std::std::_Ios_Iostate'
/usr/include/c++/4.6/bits/ios_base.h: In member function 'std::std::_Ios_Fmtflags std::std::ios_base::setf(std::std::_Ios_Fmtflags, std::std::_Ios_Fmtflags)':
/usr/include/c++/4.6/bits/ios_base.h:600: error: invalid conversion from 'int' to 'std::std::_Ios_Fmtflags'
/usr/include/c++/4.6/bits/ios_base.h:601: error: invalid conversion from 'int' to 'std::std::_Ios_Fmtflags'
/usr/include/c++/4.6/bits/ios_base.h: In member function 'void std::std::ios_base::unsetf(std::std::_Ios_Fmtflags)':
/usr/include/c++/4.6/bits/ios_base.h:613: error: invalid conversion from 'int' to 'std::std::_Ios_Fmtflags'
In file included from /usr/include/c++/4.6/bits/locale_facets.h:41,
from /usr/include/c++/4.6/bits/basic_ios.h:39,
from /usr/include/c++/4.6/ios:45,
from /usr/include/c++/4.6/ostream:40,
from /usr/include/c++/4.6/iostream:40,
from Vector.h:32,
from Block.h:28,
from polyvox.h:8:
/usr/include/c++/4.6/cwctype: At global scope:
/usr/include/c++/4.6/cwctype:84: error: '::wctrans_t' has not been declared
/usr/include/c++/4.6/cwctype:85: error: '::wctype_t' has not been declared
/usr/include/c++/4.6/cwctype:86: error: '::wint_t' has not been declared
/usr/include/c++/4.6/cwctype:88: error: '::iswalnum' has not been declared
/usr/include/c++/4.6/cwctype:89: error: '::iswalpha' has not been declared
/usr/include/c++/4.6/cwctype:91: error: '::iswblank' has not been declared
/usr/include/c++/4.6/cwctype:93: error: '::iswcntrl' has not been declared
/usr/include/c++/4.6/cwctype:94: error: '::iswctype' has not been declared
/usr/include/c++/4.6/cwctype:95: error: '::iswdigit' has not been declared
/usr/include/c++/4.6/cwctype:96: error: '::iswgraph' has not been declared
/usr/include/c++/4.6/cwctype:97: error: '::iswlower' has not been declared
/usr/include/c++/4.6/cwctype:98: error: '::iswprint' has not been declared
/usr/include/c++/4.6/cwctype:99: error: '::iswpunct' has not been declared
/usr/include/c++/4.6/cwctype:100: error: '::iswspace' has not been declared
/usr/include/c++/4.6/cwctype:101: error: '::iswupper' has not been declared
/usr/include/c++/4.6/cwctype:102: error: '::iswxdigit' has not been declared
/usr/include/c++/4.6/cwctype:103: error: '::towctrans' has not been declared
/usr/include/c++/4.6/cwctype:104: error: '::towlower' has not been declared
/usr/include/c++/4.6/cwctype:105: error: '::towupper' has not been declared
/usr/include/c++/4.6/cwctype:106: error: '::wctrans' has not been declared
/usr/include/c++/4.6/cwctype:107: error: '::wctype' has not been declared
/usr/include/c++/4.6/cwctype:119: error: 'std::std::iswblank' has not been declared
In file included from /usr/include/c++/4.6/bits/locale_facets.h:50,
from /usr/include/c++/4.6/bits/basic_ios.h:39,
from /usr/include/c++/4.6/ios:45,
from /usr/include/c++/4.6/ostream:40,
from /usr/include/c++/4.6/iostream:40,
from Vector.h:32,
from Block.h:28,
from polyvox.h:8:
/usr/include/c++/4.6/bits/streambuf_iterator.h:98: error: 'constexpr' does not name a type
In file included from /usr/include/c++/4.6/iostream:40,
from Vector.h:32,
from Block.h:28,
from polyvox.h:8:
/usr/include/c++/4.6/ostream:428: error: only declarations of constructors can be 'explicit'
/usr/include/c++/4.6/ostream:581: error: expected ',' or '...' before '&&' token
/usr/include/c++/4.6/ostream:581: error: 'std::std::basic_ostream<_Ch, _Tr>& std::std::operator<<(std::std::basic_ostream<_Ch, _Tr>)' must take exactly two arguments
In file included from /usr/include/c++/4.6/iostream:41,
from Vector.h:32,
from Block.h:28,
from polyvox.h:8:
/usr/include/c++/4.6/istream:686: error: only declarations of constructors can be 'explicit'
/usr/include/c++/4.6/istream:852: error: expected ',' or '...' before '&&' token
/usr/include/c++/4.6/istream:852: error: 'std::std::basic_istream<_CharT, _Traits>& std::std::operator>>(std::std::basic_istream<_CharT, _Traits>)' must take exactly two arguments
In file included from Vector.h:192,
from Block.h:28,
from polyvox.h:8:
Vector.inl: In copy constructor 'std::PolyVox::Vector<Size, Type>::Vector(const std::PolyVox::Vector<Size, Type>&)':
Vector.inl:86: error: 'memcpy' is not a member of 'std::std'
Vector.inl: In member function 'std::PolyVox::Vector<Size, Type>& std::PolyVox::Vector<Size, Type>::operator=(const std::PolyVox::Vector<Size, Type>&)':
Vector.inl:128: error: 'memcpy' is not a member of 'std::std'
In file included from /usr/include/c++/4.6/set:60,
from AStarPathfinderImpl.h:31,
from AStarPathfinder.h:27,
from polyvox.h:20:
/usr/include/c++/4.6/bits/stl_tree.h: At global scope:
/usr/include/c++/4.6/bits/stl_tree.h:136: error: expected nested-name-specifier before '...' token
/usr/include/c++/4.6/bits/stl_tree.h:136: error: expected '>' before '...' token
/usr/include/c++/4.6/bits/stl_tree.h:137: error: expected `)' before '&&' token
/usr/include/c++/4.6/bits/stl_tree.h: In member function '_Tp* std::std::_Rb_tree_iterator<_Tp>::operator->() const':
/usr/include/c++/4.6/bits/stl_tree.h:182: error: '__addressof' is not a member of 'std::std'
/usr/include/c++/4.6/bits/stl_tree.h: In member function 'const _Tp* std::std::_Rb_tree_const_iterator<_Tp>::operator->() const':
/usr/include/c++/4.6/bits/stl_tree.h:263: error: '__addressof' is not a member of 'std::std'
/usr/include/c++/4.6/bits/stl_tree.h: At global scope:
/usr/include/c++/4.6/bits/stl_tree.h:398: error: expected nested-name-specifier before '...' token
/usr/include/c++/4.6/bits/stl_tree.h:398: error: expected '>' before '...' token
/usr/include/c++/4.6/bits/stl_tree.h:400: error: '_Args' was not declared in this scope
/usr/include/c++/4.6/bits/stl_tree.h:400: error: expected primary-expression before '...' token
/usr/include/c++/4.6/bits/stl_tree.h:400: internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5193
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I've included PolyVoxCore and PolyVoxImpl, and edited all the files so that local includes points to the current folder.
But I can't figure this one out so I need your help.

Ubuntu 64-bit 11.10