Kdevelop #include

Kdevelop wiki says (bottom of page)

* In cases where KDevelop still does not correctly determine the inclusion path after you configured the assembly binding, you can manually add the inclusion paths to the directory for each directory in the .kdev_include_paths file. This can be done from within KDevelop by running the "solve the problem" wizard related to the "cannot find file with upload" problem, for example. by hanging the problematic #include string. *

Now I have done this (and there are no more problematic, underlined, #include lines). But when I try to build, I get:

~/projects/mqncpptest/build> make [100%] Building CXX object CMakeFiles/mqncpptest.dir/main.cpp.o ~/projects/mqncpptest/main.cpp:15:23: fatal error: Eigen/Dense: No such file or directory compilation terminated. 

BЈoviћ user asks for additional information:

I followed the KDEvelop statement for minimal compilation. Project-> new from template → standard (simple C-based C application). Version control system "none" and the cmake directory: / usr / bin / cmake. KDEvelop then underlined #include <Eigen/Dense> , I clicked the "add custom inclusion path" button that appeared at the bottom of the screen, entered the path to my own, which removed the #include <Eigen/Dense> underline, and then built and then I got /home/kaveh/projects/mqn_get/main.cpp:15:23: fatal error: Eigen/Dense: No such file or directory , I have to add that this code builds without problems in eclipse and from the shell.

Motivation: I'm trying to build it in kdevelop because I need to use a debugger (the code does not give the expected results), and the eclipse is too heavy IMO.

+4
source share
2 answers

What you did was that you included the directory for the parser, but not for the assembly. To do this, you need to modify the make file.

For g ++ you need to use - I.

+2
source

You must enable

 #include "Eigen/Dense" 

but not

 #include <Eigen/Dense> 

The last one relates to system header directories

+2
source

All Articles