|
|
|
|
|
|
const Vec3f BVolume::normals [8] = ......
?. To what I shall change that so it doesn't make the compiler confused?
/media/34GB/demos/asmfrt/BVolume.h|18|error: ‘constexpr’ does not name a type|
|
|
/media/34GB/demos/asmfrt/BVolume.h|19|warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x|
/media/34GB/demos/asmfrt/Vec3f.h|32|undefined reference to `BVolume::normals'|
. I tried to add -std=c++0x, but it appears to generate a compiler bug in file "vector.tcc"/usr/include/c++/4.4/bits/vector.tcc|314|error: no match for ‘operator=’ in ‘__position.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = Bbox*, _Container = std::vector<Bbox, std::allocator<Bbox> >]() = ((const Bbox&)((const Bbox*)std::forward [with _Tp = const Bbox&](((const Bbox&)((const Bbox*)__args#0)))))’|
*__position = _Tp(std::forward<_Args>(__args)...);
|
|
About update the compiler, unfortunately I cannot do that. |
"/media/34GB/demos/asmfrt/Vec3f.h|11|multiple definition of `BVolume::normals'|"
obj/Debug/RayTracer.o:/media/34GB/demos/asmfrt/RayTracer.cpp|376|first defined here|
|
|
#pragma once
which is supported by most compiler.
|
|
#endif