Wrox Home  
Search P2P Archive for: Go

  Return to Index  

gtkplus_gnome thread: RE: need your help in GTK+ code compiling


Message #1 by Andrew Polshaw <andrewp@w...> on Mon, 2 Sep 2002 13:12:32 +0100
It has been some time but it sounds like an X Server permissions problem.
Are you telnetting/xterming into a different machine? Try typing "xhost +"
first. That should allow any port to have access to your X Server. X maybe
more flexible and powerful, but it is damned annoying at times.

-----Original Message-----
From: sachin [mailto:sachins50@y...]
Sent: 16 August 2002 11:30
To: GTK+Gnome
Subject: [gtkplus_gnome] need your help in GTK+ code compiling


Hello all,

I have downloaded codes from wrox site for book 
"Beginning GTK+/GNOME Programming". 
I got a basic C code (program) called "intro.c"
written in C in a folder Ch01.
I compiled it as per the given README file with
following command :
$gcc -Wall -o intro intro.c `gtk-config --cflags
--libs`

And it actually compiled the code and produced run
file called intro in my home directory.

I tried to run that file using following command
$./intro


but I got following message

Gtk-WARNING **: cannot open display: 



I could not rectify this problem.
Pls. could anyone tell me where is the problem!
My OS is Red hat Linux 7.1 and kernel - 2.4.2-2
Pls tell me what is required to solve this problem.

Waiting for some guidelines from all experts


sachin

  Return to Index