473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

gtkmm installation problem

rhitam30111985
112 100+
Hi everyone , dunno whether to post this in linux forum or c/c++ forum..
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
  1.  
  2. #include<iostream>
  3. #include<gtkmm/gtkmm.h>
  4.  
  5.  
  6. using namespace std;
  7.  
  8. int main(int argc,char* argv[])
  9.  
  10. {
  11.    GtkWidget *window;
  12.  
  13.     gtk_init (&argc, &argv);
  14.  
  15.     window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  16.     gtk_widget_show(window);
  17.  
  18.     gtk_main ();
  19.  
  20.  
  21.  
  22.   return 0;
  23. }
  24.  
  25.  

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
Dec 5 '07 #1
0 1557

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Lars Weber | last post by:
Hi! I am trying out some C++ programmig with my Gentoo Linux distribution. When I generate a Gtkmm project with the Anjuta IDE wizard and just push the "Run configure" button, I end up with the...
1
by: Al-Burak | last post by:
I have been tinkering around the GTK world for a while, and since I am more of a C++ programmer I would like to use GTKmm to develop my GUI. However, I have a GTK+ (from Tor Lillqvist) version...
2
by: Al-Burak | last post by:
Ever since I started tinkering around the GTK+ and later on Gtkmm toolkits, I've noticed a steady flow of programmers talking more and more, and more passionately, about these toolkits. It came...
24
by: silversurfer2025 | last post by:
Hello. I do not know whether this really is the right group, but I could not find any group dealing only with GUIs for C++ so here I am. I am currently deciding which GUI to use in my program....
0
by: rsaikamesh | last post by:
Hi, I im creating GUI in c++ using gtkmm (OS - ubuntu). I want to add a CheckMenuItem in a menubar.I dont know how to add this.please tell me, how to add this.if possible please send me the coding.
0
by: paridaG | last post by:
Hi, I am using gtkmm 2.4 to create user interface in my application.My OS is ubuntu. Now i am doing error logging in my application. I do not know, What are the exceptions may occur in gtkmm and...
2
by: jalqadir | last post by:
I would like to add a signal to a Gtk::Entry object, but for some reason this gives me bunch of errors saying that it is D:\XWin\include\sigc++-2.0\sigc++\adaptors\adaptor_trait.h|84|error: no...
2
by: Ruben | last post by:
It seems to me that the togglebutton toggled() function has a but. Documentation says that when called it will change the state of the object. I can't varify this behavior. It calls the toogle...
1
by: ArbolOne | last post by:
I just downloaded gtkmm-win32-devel-2.14.1-3 and try to recompile an application I had developed under gtkmm-win32-devel-2.10.11-1, but I get a strange error: -------------------- ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.