Reputation: 41
When running my program with this CGAL include for example:
#include <CGAL/Epick_d.h>
I get two error messages that read:
C1189 #error: Eigen3 is required
and
#error directive: Requires Eigen
They direct to cartesian_la_base.h and constructors.h respectively. There I find the following piece of code:
#ifndef CGAL_EIGEN3_ENABLED
#error Requires Eigen
#endif
So it seems to me that the CGAL_EIGEN3_ENABLED flag is not set. I cannot find a problem with either CGAL or Eigen though, so I am a bit puzzled as to why this is happening. I set an environment variable to .../Eigen and included the directory under Properties -> c/c++ -> General -> Additional Include Directories as well as in Linker -> General.
Strangely enough, there seems to be virtually no-one else to receive the same error-message, judging from my success with googling the matter.
I use Visual Studio 2015.
Hopefully this is enough information. Cheers
Upvotes: 2
Views: 1823
Reputation: 41
In my case, adding the line
#define CGAL_EIGEN3_ENABLED
solved the problem. So it seems the only issue was the flag not being set correctly.
Upvotes: 2