Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2017 can't find "Eigen/Core" #99

Open
drhalftone opened this issue Mar 15, 2020 · 1 comment
Open

VS2017 can't find "Eigen/Core" #99

drhalftone opened this issue Mar 15, 2020 · 1 comment

Comments

@drhalftone
Copy link

I'm using VS2017 and CMAKE has no problem, but when I try to compile the solution in Visual Studio, I get an error that VS can't find "Eigen/Core"

To give you some background, I've downloaded eigen-3.3.7. Inside eigen-3.3.7 there is a directory Eigen. Inside of that is another directory src along with a lot of files that don't have extensions. Inside the src directory are a bunch of directories including Core. Using the CMake GUI, I tried setting the Eigen_Include_Directory to C:/Users/dllau/Downloads/eigen-3.3.7 as well as C:/Users/dllau/Downloads/eigen-3.3.7/Eigen. Neither work.

Any suggestions?

@GordonEldest
Copy link

Eigen/Core is directly under Eigen/ (look at it in eigen-3.3.7/Eigen you should see it with more than a dozens others)
It doesn't have the usual ".h" extension but is THE include to look for.
Hence "src" is NOT the place to look for it.

if unsuccessful try setting directly the Eigen path in the CMake UI stopping at level "..../eigen-3.3.7"
if still unsuccessful add it manually in VisualStudio in "Properties/C++/General/Additional Include Directories"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants