Registered Member
|
Hello,
i am trying to use Eigen with MEX new CPP API of matlab. when i compile the program without the MEX headers it compile perfectly fine. but when i added the MEX header " #include "mexAdapter.hpp" " i get compile the compile errors: eigen\src\core\plainobjectbase.h(903): error C2131: expression did not evaluate to a constant eigen\src\core\plainobjectbase.h(903): note: failure was caused by call of undefined function or one not declared 'constexpr' eigen\src\core\plainobjectbase.h(903): note: see usage of 'matlab::data::operator !=' eigen\src\core\plainobjectbase.h(902): note: while compiling class template member function 'void Eigen::PlainObjectBase<Eigen::Array<float,-1,1,0,-1,1>>::_check_template_params(void)' eigen\src\core\array.h(134): note: see reference to function template instantiation 'void Eigen::PlainObjectBase<Eigen::Array<float,-1,1,0,-1,1>>::_check_template_params(void)' being compiled eigen\src\core\array.h(47): note: see reference to class template instantiation 'Eigen::PlainObjectBase<Eigen::Array<float,-1,1,0,-1,1>>' being compiled eigentest.h(74): note: see reference to class template instantiation 'Eigen::Array<float,-1,1,0,-1,1>' being compiled i am using VS2017 with the latest Eigen Ver 3.6.6 it is not look like a code issue, and i assuming it related to "Using custom scalar types" topic since Eigen probably dont recognize MEX defs, but i have no idea how to fix it.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]