Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6747241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:25:06+00:00 2026-05-26T12:25:06+00:00

This seems to be the correct answer to my problem, however I think it’s

  • 0

This seems to be the correct answer to my problem, however I think it’s more the way I am writing my makefile as I already have the steps described in the link below (I know how to build things).

How to write a makefile for a C++ project which uses Eigen, the C++ template library for linear algebra?

Error:

SASAGeometry.h:6:22: error: Eigen/Core: No such file or directory 
SASAGeometry.h:7:20: error: Eigen/LU: No such file or directory

The problematic lines in my header file are simply :

#include <Eigen/Core>
#include <Eigen/LU>

So here is the makefile (am on overkill in the INCLUDE line, I know):

CC = g++
BIN = .

INCLUDE = -I/usr/local/include/eigen2/ -I. -I/usr/local/include/eigen2/Eigen/ -I/home/mark/Applications/eigen/Eigen/src/ -I /usr/local/include

CFLAGS = -pipe

LFLAGS = -lm

GeomTest_OBJS = geomTest.o SASAGeometry.o

geomTest_source = SASAGeometry.cpp SASAGeometry.h sasa_transformMatrix.cpp sasa_transformMatrix.h geomSetup.cpp


geomTest    : $(GeomTest_OBJS) makefile
            $(CC) -o geomTest.o -o SASAGeometry.o $(LIBS) $(INCLUDE) $(CFLAGS) $(geomTest_source) $(LFLAGS)
            $(CC) $(LIBS) $(INCLUDE) $(CFLAGS) -o $(BIN)/geomTest geomTest.o SASAGeometry.o $(LFLAGS)

clean       : \rm *.o *~ p1

any thoughts?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:25:07+00:00Added an answer on May 26, 2026 at 12:25 pm

    (Note, read comments to get gist of the final solution. I will update the answer when I have clarification from the original poster of the question.)

    Sometimes it is the obvious, which is easy to miss. Please check that your user has read permissions for all files and directories in /usr/local/include/eigen2 and /usr/local/include/eigen2/Eigen. Also double check the files you are including actually exist in /usr/local/include/eigen2/Eigen.

    Additional:
    It sounds like the install was deployed directly into /usr/include/eigen2 and NOT /usr/include/Eigen like the documentation assumes. That means the header files the tutorials want are in /usr/include/eigen2. Your -I needs to point to /usr/include/ (I think thats by default in GNU GCC). Your source code is incorrect, it should be #include <eigen2/Core> and #include <eigen2/LU>. Whoever installed eigen on your system changed the name of the root directory specified in the documentations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems to be returning the correct answer, but I'm not sure if this
This seems like a pretty softball question, but I always have a hard time
This seems to be a common problem but I cannot find a solution. I
This seems like a very simple and a very common problem. The simplest example
This seems like a very simple problem, but I cannot get a scrollbox to
Seems like a simple problem: I have an SVN repo inside our firewall. I
Ok so ive been at this problem from a day or so now, seems
This is kind of a 'double' question that might have a single answer. I'm
I think I may know the answer to this question but I'm actually looking
I can't seem to get the correct Unix epoch time out of this PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.