Google
  Web www.spinics.net

Re: Hello World: Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,

Yes I was able to run xclock. It showed up on my frontend monitor not on the wall.

Thank you.
-jerrold

On Mon, Apr 30, 2012 at 1:44 PM, Doug Kuvaas <doug.kuvaas@xxxxxxxxx> wrote:
Jerrold,

Can you run xclock from the terminal successfully or does it give you the same error?  Usually when I see this error, it means that something is preventing the client from connecting to the xserver (firewall, xhost, etc).  

If you cannot run xclock, verify that the firewall is allowing x traffic (I typically turn the firewall off as I have a hardware firewall on my network) and that xhost is allowing your system to connect to the xserver.

On Mon, Apr 30, 2012 at 3:15 PM, Jerrold Clint Balansi <jcx4ever@xxxxxxxxx> wrote:
Hi wh,

I did your instruction and it compiled. Here's what I got.

[root@vizwall jcX Files]# make
cc -Wall    HelloX.c -lX11  -o HelloX
[root@vizwall jcX Files]# ./HelloX
X connection to :0.0 broken (explicit kill or server shutdown).
[root@vizwall jcX Files]#

Is there anyting I should know why I'm getting this X connection to :0.0 broken (explicit kill or server .. Thank you.


-jerrold


On Fri, Apr 27, 2012 at 5:28 AM, walter harms <wharms@xxxxxx> wrote:


Am 24.04.2012 11:51, schrieb Michal Hejduk:
> On Monday 23 of April 2012 14:13:28 Jerrold Clint Balansi wrote:
>
> Hi Julien,
> I'm sorry that I'm pretty much new in to this Xlib programming, how exactly
> can I do that?
>
> Thank you for your help.
>
> -jerrold
>
hi jerrold,
please save the 3 lines below in a file called "makefile", then start make.
Give you have all needed libes it should work the example complies for me
without problems.

re,
 wh

LOADLIBES=-lX11
CFLAGS=-Wall
hellox:


>
> On Mon, Apr 23, 2012 at 2:10 PM, Julien Cristau <jcristau@xxxxxxxxxx> wrote:
>
> On Mon, Apr 23, 2012 at 13:55:34 -0700, Jerrold Clint Balansi wrote:
>
>> Hello,
>>
>> I am trying to make a Hello World program from code from this site:
>> http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html
>>
>> However, when I try to compile and run it I get this error. Can some give
>> me a hint. Thank you.
>>
>> [root@vizwall Desktop]# gcc -o HelloX HelloX.c
>>> /tmp/ccMGGmGj.o: In function `main':
>>> HelloX.c:(.text+0x42): undefined reference to `XAllocSizeHints'
>
>
> You need to link with -lX11.
>
> Cheers,
> Julien
>
>
> Compile with:
>
> gcc -lX11 -o HelloX HelloX.c
>
> Nazdar
> Michal
>
>
>
>
>
> _______________________________________________
> xorg@xxxxxxxxxxx: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.x.org/mailman/listinfo/xorg
> Your subscription address: wharms@xxxxxx
_______________________________________________
xorg@xxxxxxxxxxx: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: jcx4ever@xxxxxxxxx


_______________________________________________
xorg@xxxxxxxxxxx: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: doug.kuvaas@xxxxxxxxx


_______________________________________________
xorg@xxxxxxxxxxx: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: list-xorg@xxxxxxxxxxx

[X Forum]     [Nouveau Driver]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux