Try the "g++ -lga -lm -o *...".<br>Hope it works.<br><br><div class="gmail_quote">2009/1/4 <span dir="ltr"><<a href="mailto:galib-request@mit.edu">galib-request@mit.edu</a>></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>
<a href="mailto:galib@mit.edu">galib@mit.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<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 'help' to<br>
<a href="mailto:galib-request@mit.edu">galib-request@mit.edu</a><br>
<br>
You can reach the person managing the list at<br>
<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 "Re: Contents of galib digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. (no subject) (Catherine Johnson)<br>
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 <<a href="mailto:cjlives4jc@hotmail.com">cjlives4jc@hotmail.com</a>><br>
Subject: [galib] (no subject)<br>
To: <<a href="mailto:galib@mit.edu">galib@mit.edu</a>><br>
Message-ID: <BLU106-W1F282CF87D8F5148C55AC9EE30@phx.gbl><br>
Content-Type: text/plain; charset="iso-8859-1"<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 'main':ga-test.c:(.text+0x2c):undefined reference to 'GA_config'<br>
:ga-test.c:(.text+0x4c): undefined reference to 'X_select'<br>
:ga-test.c:(.text+0x57): undefined reference to 'GA_run'<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 <<a href="mailto:cjlives4jc@hotmail.com">cjlives4jc@hotmail.com</a>><br>
Cc: <a href="mailto:galib@mit.edu">galib@mit.edu</a><br>
Message-ID: <20090103160542.GD2625@lucy.pallas><br>
Content-Type: text/plain; charset=iso-8859-1<br>
<br>
I think you'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>
><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 'main':ga-test.c:(.text+0x2c):undefined reference to 'GA_config'<br>
> :ga-test.c:(.text+0x4c): undefined reference to 'X_select'<br>
> :ga-test.c:(.text+0x57): undefined reference to 'GA_run'<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>
> _______________________________________________<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>
--<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>