Hello World: Error
Sérgio Basto
sergio at serjux.com
Mon Apr 23 15:03:49 PDT 2012
On Mon, 2012-04-23 at 14:13 -0700, 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?
gcc -o HelloX HelloX.c -lX11
> Thank you for your help.
>
> -jerrold
>
> On Mon, Apr 23, 2012 at 2:10 PM, Julien Cristau <jcristau at debian.org>
> 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 at 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
>
>
--
Sérgio M. B.
More information about the xorg
mailing list