<div dir="ltr"><div>Hello. Recently I've become interested in the mlpack C++ library (<a href="https://github.com/mlpack/mlpack">https://github.com/mlpack/mlpack</a>). I've cloned the repository, ran CMake with the option to generate compile_commands.json and tried opening the project in emacs with lsp-mode enabled (clangd-9.0.0-2). During indexing, there were a lot of messages in the *clangd::stderr* buffer like:</div><div><code>Failed to compile /home/username/mlpack/src/mlpack/tests/linear_regression_test.cpp, index may be incomplete</code></div><div><code><font face="arial,sans-serif">Then, after clangd finished indexing, I could not find many definitions and many parts of the source code were highlighted red and there were error messages like</font></code></div><div><code>clang: No template named 'vector' in namespace 'std'; did you mean 'std::std::vector'? (Fix available)</code></div><div><code><font face="arial,sans-serif">or</font></code></div><div><code>clang: Use of undeclared identifier 'arma'; did you mean 'std::arma'? (Fix available)</code></div><div><code><font face="arial,sans-serif">(Where 'arma' is a namespace declared in armadillo, a dependency of mlpack)</font></code></div><div><code><font face="arial,sans-serif"><br></font></code></div><div><code><font face="arial,sans-serif">Do you have any idea on what is wrong? Thank you in advance.</font><br></code></div></div>