Программа не хочет компилится
#include <gtkmm/button.h>
#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include <iostream>
class HelloWorld : public Gtk::Window
{
public:
HelloWorld();
virtual ~HelloWorld();
protected:
//Signal handlers:
virtual void on_button_clicked();
//Member widgets:
Gtk::Button m_button;
};
HelloWorld::HelloWorld()
: m_button("Hello World") // creates a new button with the label "Hello World".
{
// Sets the border width of the window.
set_border_width(10);
// When the button receives the "clicked" signal, it will call the
// hello() method. The hello() method is defined below.
m_button.signal_clicked().connect(SigC::slot(this, &HelloWorld::on_button_clicked));
// This packs the button into the Window (a container).
add(m_button);
// The final step is to display this newly created widget...
m_button.show();
}
HelloWorld::~HelloWorld
{
}
void HelloWorld::on_button_clicked()
{
std::cout << "Hello World" << std::endl;
}
int main (int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
HelloWorld helloworld;
kit.run(helloworld); //Shows the window and returns when it is closed.
return 0;
}
ubuntu@ubuntu-machine:~/projects/gtkmm$ g++ hello.cpp -o hello
hello.cpp:1:26: fatal error: gtkmm/button.h: Нет такого файла или каталога
compilation terminated.
Кто виноват и что делать?
libgtkmm-2.4-dev установлен