openglsuperbible/sb6code

sb6render

Opened this issue · 0 comments

Having the following error if i want to compile the "sb6mrender":

////////////////////////////////////////////////////////////////////////////
[ 71%] Building CXX object CMakeFiles/sb6mrender.dir/src/sb6mrender/sb6mrender.cpp.o
In file included from /home/sajjad/Downloads/OpenGL/SuperBible/code/sb6code/src/sb6mrender/sb6mrender.cpp:25:0:
/home/sajjad/Downloads/OpenGL/SuperBible/code/sb6code/include/vmath.h: In instantiation of ‘vmath::Tquaternion::’:
/home/sajjad/Downloads/OpenGL/SuperBible/code/sb6code/include/vmath.h:677:5: instantiated from ‘vmath::Tquaternion’
/home/sajjad/Downloads/OpenGL/SuperBible/code/sb6code/include/arcball.h:112:25: instantiated from here
/home/sajjad/Downloads/OpenGL/SuperBible/code/sb6code/include/vmath.h:682:25: error: member ‘vmath::Tvec3 vmath::Tquaternion::::::v’ with constructor not allowed in union
/home/sajjad/Downloads/OpenGL/SuperBible/code/sb6code/include/vmath.h:682:25: error: member ‘vmath::Tvec3 vmath::Tquaternion::::::v’ with copy assignment operator not allowed in union
/home/sajjad/Downloads/OpenGL/SuperBible/code/sb6code/include/vmath.h:682:25: note: unrestricted unions only available with -std=c++0x or -std=gnu++0x
make[2]: *** [CMakeFiles/sb6mrender.dir/src/sb6mrender/sb6mrender.cpp.o] Error 1
make[1]: *** [CMakeFiles/sb6mrender.dir/all] Error 2
make: *** [all] Error 2

///////////////////////////////////////////////////////////////////////////

Any way to get rid of it ? Do i have to edit the Makefile ?

Thanks