Search code examples
c++iosobjective-cvectoreigen

Eigen Use in ios project


I am trying to use Eigen 3 in my ios project i have added header files but it does not allow me to compile. it always gives error.

Unable to resolve. I have been searching for solutions for many days.

My All files are .mm

I think, i am missing any compiler flag, linking or anyting.

Please help me.

Attached screen shots of Xcode.

I would appreciate if someone can help me.

Thanksenter image description here


Solution

  • First of all, make sure you are including Eigen/Core (or the likes) and not directly the .h files that are in Eigen/src/. Then, I guess the problem is that your are mixing c++ and objective c code (.mm file). That confuse the compiler because Eigen requires a very good C++ compiler support. Cannot you use pure C++ code in ios?