<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Monday 23 of April 2012 14:13:28 Jerrold Clint Balansi wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi Julien,<br />I'm sorry that I'm pretty much new in to this Xlib programming, how exactly can I do that?<br /><br />Thank you for your help.<br /><br />-jerrold<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Mon, Apr 23, 2012 at 2:10 PM, Julien Cristau <<a href="mailto:jcristau@debian.org"><span style=" text-decoration: underline; color:#0057ae;">jcristau@debian.org</span></a>> wrote:<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:44px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Mon, Apr 23, 2012 at 13:55:34 -0700, Jerrold Clint Balansi wrote:<br /><br />> Hello,<br />><br />> I am trying to make a Hello World program from code from this site:<br />> <a href="http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html"><span style=" text-decoration: underline; color:#0057ae;">http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html</span></a><br />><br />> However, when I try to compile and run it I get this error. Can some give<br />> me a hint. Thank you.<br />><br />> [root@vizwall Desktop]# gcc -o HelloX HelloX.c<br />> > /tmp/ccMGGmGj.o: In function `main':<br />> > HelloX.c:(.text+0x42): undefined reference to `XAllocSizeHints'<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">You need to link with -lX11.<br /><br />Cheers,<br />Julien<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br />Compile with:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">gcc -lX11 -o HelloX HelloX.c</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Nazdar</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Michal<br /><br /></p></body></html>