I have set up Eclipse (on Ubuntu 20.04) for C/C++ programming and are attempting to configure the IDE for Gtkmm.
I have installed the Pkg-config support for Eclipse for CDT 1.0.0 plug-in.
Then I have created a new C++ project and checked the Gtkmm-3.0 box in
- Properties —C/C++ build —Settings — Pkg-config
Then I try to compile the following program:
#include <gtkmm.h>
class MyWindow : public Gtk::Window
{
public:
MyWindow();
};
MyWindow::MyWindow()
{
set_title("Basic application");
set_default_size(200, 200);
}
int main(int argc, char* argv[])
{
auto app = Gtk::Application::create("org.gtkmm.examples.base");
return app->make_window_and_run<MyWindow>(argc, argv);
}
But I get the following error: Fatal error: Gtkmm.h : Cannot find file or folder
How do I configure the IDE or project to get it to compile?
Regards Jarl