use*_*035 5 c++ kdevelop eigen
Kdevelop 维基说(页面底部)
\n\n*对于在配置构建工具链后 KDevelop 仍然无法正确确定包含路径的情况,您可以手动将每个目录的包含路径添加到 .kdev_include_paths 文件中。这可以从 KDevelop 内部通过运行与“无法找到包含文件”问题相关的“解决问题”向导来完成,例如通过悬停有问题的 #include 行。*
\n\n现在,我已经做到了这一点(并且不再有任何有问题的、下划线的、#include 行)。但是当我尝试构建时,我得到:
\n\n~/projects/mqncpptest/build> make\n[100%] Building CXX object CMakeFiles/mqncpptest.dir/main.cpp.o\n~/projects/mqncpptest/main.cpp:15:23: fatal error: Eigen/Dense: No such file or directory\ncompilation terminated.\nRun Code Online (Sandbox Code Playgroud)\n\n用户 B\xd0\x88\xd0\xbe\xd0\xb2\xd0\xb8\xd1\x9b 询问更多信息:
\n\n我按照 KDEvelop 指令进行了最小编译。项目 -> 从模板新建 -> 标准(基于简单 C make 的 C++ 应用程序)。版本控制系统为“无”,cmake 目录为:/usr/bin/cmake。然后KDEvelop下划线#include <Eigen/Dense>,我点击屏幕下端弹出的“添加自定义包含路径”,输入特征路径,它删除了下划线#include <Eigen/Dense>,然后构建,然后我得到了/home/kaveh/projects/mqn_get/main.cpp:15:23: fatal error: Eigen/Dense: No such file or directory。我应该补充一点,这段代码在 Eclipse 和 shell 中构建都没有问题。
动机:我尝试在 kdevelop 下构建它,因为我需要使用调试器(代码没有给出预期的结果)并且 Eclipse 太重了。
\n