致命错误:Eigen / Core:没有这样的文件或目录编译终止

时间:2017-10-31 09:16:37

标签: gcc g++

我最近将操作系统改为最后一个薄荷肉桂。编译我需要的库之一(以及我过去常常使用的库),我得到这样的消息:

fatal error: Eigen/Core: No such file or directory compilation terminated.

我不知道该怎么办。 谢谢你的帮助。

2 个答案:

答案 0 :(得分:2)

尝试安装eigen3库,

在Ubuntu上它将是

   class ApplicationsAuth extends AsyncTask<Void, Void, Void> {
    protected Map<String, String> applicationsAuthCookies = null;
    protected String userLogin;
    protected String userPassword;
    protected String userName;

    public ApplicationsAuth(String login, String password)
    {
        this.userLogin = login;
        this.userPassword = password;
    }

    @Override
    protected Void doInBackground(Void... params) {

        Document testPage = null;

        Connection.Response authStartResponse = null;
        Connection.Response authFinalResponse = null;


        try {
            authStartResponse = Jsoup.connect("https://support.tltsu.ru/")
                    .method(Connection.Method.GET)
                    .timeout(3500)
                    .execute();

            try {
                authFinalResponse = Jsoup.connect("https://support.tltsu.ru/login.php")
                        .userAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36")

                        .data("login", userLogin)
                        .data("password", userPassword)
                        .cookies(authStartResponse.cookies())
                        .method(Connection.Method.POST)
                        .timeout(3500)
                        .execute();
                applicationsAuthCookies = authStartResponse.cookies();
                testPage = authFinalResponse.parse();
            } catch (IOException e) {
                e.printStackTrace();
            }

            try {
                if (applicationsAuthCookies != null) {
                    testPage = Jsoup.connect("https://support.tltsu.ru/")
                            .cookies(applicationsAuthCookies)
                            .timeout(3000)
                            .get();
                    userName = testPage.select("div#container > div#header > p").text();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

        return null;
    }

    @Override
    protected void onPostExecute(Void result) {
            super.onPostExecute(result);

    }
}

答案 1 :(得分:0)

包括目录/usr/local/include/eigen3/为我解决了这个问题。

例如,

g++ -I/usr/local/include/eigen3/ CODE.cpp -o EXECUTABLE