Try the &quot;g++ -lga -lm -o *...&quot;.<br>Hope it works.<br><br><div class="gmail_quote">2009/1/4  <span dir="ltr">&lt;<a href="mailto:galib-request@mit.edu">galib-request@mit.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send galib mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:galib@mit.edu">galib@mit.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://mailman.mit.edu/mailman/listinfo/galib" target="_blank">http://mailman.mit.edu/mailman/listinfo/galib</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:galib-request@mit.edu">galib-request@mit.edu</a><br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:galib-owner@mit.edu">galib-owner@mit.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of galib digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
 &nbsp; 1. (no subject) (Catherine Johnson)<br>
 &nbsp; 2. Re: (no subject) (<a href="mailto:fr.teodoro@gmail.com">fr.teodoro@gmail.com</a>)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 3 Jan 2009 09:53:39 +0000<br>
From: Catherine Johnson &lt;<a href="mailto:cjlives4jc@hotmail.com">cjlives4jc@hotmail.com</a>&gt;<br>
Subject: [galib] (no subject)<br>
To: &lt;<a href="mailto:galib@mit.edu">galib@mit.edu</a>&gt;<br>
Message-ID: &lt;BLU106-W1F282CF87D8F5148C55AC9EE30@phx.gbl&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
<br>
hi,<br>
<br>
ive just started using libGA. I cant compile the ga-test.c program.<br>
I do it with this comand: gcc -lm -o ga-test ga-test.c<br>
And it comes up with this error:<br>
/tmp/ccSdTEwt.o: In function &#39;main&#39;:ga-test.c:(.text+0x2c):undefined reference to &#39;GA_config&#39;<br>
:ga-test.c:(.text+0x4c): undefined reference to &#39;X_select&#39;<br>
:ga-test.c:(.text+0x57): undefined reference to &#39;GA_run&#39;<br>
collect2: ld returned 1 exit status<br>
<br>
This is without any modifications to the program, i.e. just using what I downloaded.<br>
Could you tell me why and explain these errors and how to fix it, please?<br>
<br>
THanks very much.<br>
<br>
C<br>
_________________________________________________________________<br>
Imagine a life without walls.? See the possibilities.<br>
<a href="http://clk.atdmt.com/UKM/go/122465943/direct/01/" target="_blank">http://clk.atdmt.com/UKM/go/122465943/direct/01/</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.mit.edu/pipermail/galib/attachments/20090103/c700cb35/attachment-0001.htm" target="_blank">http://mailman.mit.edu/pipermail/galib/attachments/20090103/c700cb35/attachment-0001.htm</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 3 Jan 2009 14:05:42 -0200<br>
From: <a href="mailto:fr.teodoro@gmail.com">fr.teodoro@gmail.com</a><br>
Subject: Re: [galib] (no subject)<br>
To: Catherine Johnson &lt;<a href="mailto:cjlives4jc@hotmail.com">cjlives4jc@hotmail.com</a>&gt;<br>
Cc: <a href="mailto:galib@mit.edu">galib@mit.edu</a><br>
Message-ID: &lt;20090103160542.GD2625@lucy.pallas&gt;<br>
Content-Type: text/plain; charset=iso-8859-1<br>
<br>
I think you&#39;re talking about this C library:<br>
<a href="ftp://ftp.uni-magdeburg.de/pub/mirror/hpux.ask.uni-karlsruhe.de/Maths/Misc/libga-1.00/libga-1.00.README.html" target="_blank">ftp://ftp.uni-magdeburg.de/pub/mirror/hpux.ask.uni-karlsruhe.de/Maths/Misc/libga-1.00/libga-1.00.README.html</a>,<br>

but this list is about this C++ library: <a href="http://lancet.mit.edu/ga/" target="_blank">http://lancet.mit.edu/ga/</a>.<br>
<br>
Together with the sources of GAlib there is a examples directory, try with these to test your installation.<br>
<br>
Hope this help.<br>
<br>
On Sat, Jan 03, 2009 at 09:53:39AM +0000, Catherine Johnson wrote:<br>
&gt;<br>
&gt; hi,<br>
&gt;<br>
&gt; ive just started using libGA. I cant compile the ga-test.c program.<br>
&gt; I do it with this comand: gcc -lm -o ga-test ga-test.c<br>
&gt; And it comes up with this error:<br>
&gt; /tmp/ccSdTEwt.o: In function &#39;main&#39;:ga-test.c:(.text+0x2c):undefined reference to &#39;GA_config&#39;<br>
&gt; :ga-test.c:(.text+0x4c): undefined reference to &#39;X_select&#39;<br>
&gt; :ga-test.c:(.text+0x57): undefined reference to &#39;GA_run&#39;<br>
&gt; collect2: ld returned 1 exit status<br>
&gt;<br>
&gt; This is without any modifications to the program, i.e. just using what I downloaded.<br>
&gt; Could you tell me why and explain these errors and how to fix it, please?<br>
&gt;<br>
&gt; THanks very much.<br>
&gt;<br>
&gt; C<br>
&gt; _________________________________________________________________<br>
&gt; Imagine a life without walls.? See the possibilities.<br>
&gt; <a href="http://clk.atdmt.com/UKM/go/122465943/direct/01/" target="_blank">http://clk.atdmt.com/UKM/go/122465943/direct/01/</a><br>
&gt; _______________________________________________<br>
&gt; galib mailing list<br>
&gt; <a href="mailto:galib@mit.edu">galib@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/galib" target="_blank">http://mailman.mit.edu/mailman/listinfo/galib</a><br>
<br>
<br>
--<br>
FRT<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
galib mailing list<br>
<a href="mailto:galib@mit.edu">galib@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/galib" target="_blank">http://mailman.mit.edu/mailman/listinfo/galib</a><br>
<br>
<br>
End of galib Digest, Vol 66, Issue 1<br>
************************************<br>
</blockquote></div><br>