In libtorch/include/caffe2/core/macros.h
, EIGEN_MPL2_ONLY
is defined.
However I don’t want to define this, because this disables what I need to use in Eigen.
Actually, when I removed this definition, there was no problem. My program was successfully built and worked.
But, may removing this part make any error ?
I meet the same problem.Does is work well if you just remove the define?
Yes, what I did is just removing the definition.
Of course, in order to biuld my program, I need to re-build other libraries with this option
cmake .. -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
but this is another topic.
For using Eigen, I just removed definition.