I am trying to create GUI files using gtkmm library in c++ . I am using debian linux with GNOME desktop environment . i installed the required package for gtkmm namely ,
libgtkmm-2.4-dev
by running apt-get install libgtkmm-2.4-dev as root
after that , i tried running the folowing code :
Expand|Select|Wrap|Line Numbers
- #include<iostream>
- #include<gtkmm/gtkmm.h>
- using namespace std;
- int main(int argc,char* argv[])
- {
- GtkWidget *window;
- gtk_init (&argc, &argv);
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_show(window);
- gtk_main ();
- return 0;
- }
after compiling . it gave me the following errors :
start.cpp:2:24: gtkmm/gtkmm.h: No such file or directory
start.cpp: In function `int main(int, char**)':
start.cpp:10: error: `GtkWidget' was not declared in this scope
start.cpp:10: error: `window' was not declared in this scope
start.cpp:12: error: `gtk_init' was not declared in this scope
start.cpp:14: error: `GTK_WINDOW_TOPLEVEL' was not declared in this scope
start.cpp:14: error: `gtk_window_new' was not declared in this scope
start.cpp:15: error: `gtk_widget_show' was not declared in this scope
start.cpp:17: error: `gtk_main' was not declared in this scope
cant figure out why it is not reading the required header file .
any help appreciated ,
regards
Rhitam