Registered Member
|
My code seems to be crashing when I assign a Quaternion using the = operator. I've chopped out most of the useless bits... if anybody can help.
|
Moderator
|
It seems you are hitting an alignment issue. Just to be sure, could you try with the devel branch. If that still crash, could you detail your platform (system,CPU,compiler). It might be that on your platform the stack is not aligned. You can also compile with EIGEN_DONT_ALIGN_STATICALLY. For details you can read these pages:
http://eigen.tuxfamily.org/dox-devel/gr ... ement.html |
Registered Member
|
I see. According to the link I have use EIGEN_MAKE_ALIGNED_OPERATOR_NEW or typedef my Quaternion to the no_aligned version since I'm using a struct with an Eigen member. I also might have to include <Eigen/StdVector>.
Since you asked, I'm running under 64 bit Windows 7 Professional and compiling with Visual Studio 2012 Ultimate under WIN 32. |
Moderator
|
Right, I did not pay attention to that, but you have to add EIGEN_MAKE_ALIGNED_OPERATOR_NEW to your class joint and use an aligned_allocator if joints is a std::vector.
btw, in c++ class and struct are declared like this:
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]