473,472 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

gtkmm installation problem

rhitam30111985
112 New Member
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 1558

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: 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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.