I am trying to develop an application with gtk3 in c++ and I am using Spacemacs as my main emacs distribution in addition to lsp for c++.

In my main cpp file, I included the following header :

#include <gtkmm.h>

However lsp gives me this error message :

'gtkmm.h' file not found [pp_file_not_found]

So how can I tell to lsp that I am using an external header (here gtk library) in my project? Is it possible to have auto completion for gtk then?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.