Hello,<br><br>I encountered a problem in installing GAlib graphic&#39;s examples on Linux platform.<br>According to the instruction from the web, after typing:<br>To build the graphic examples:&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; % cd examples/graphic; make<br>
<br>
I got such error during compilation:<br>
<br>
*****************************************************************************************<br>
[root@localhost graphic]# make<br>
g++ -Wall -O -g -DUSE_MOTIF -I../.. -c tspview.C<br>
tspview.C: In function 'void DrawCB(_WidgetRec*, void*, void*)':<br>
tspview.C:413: warning: converting to 'int' from 'float'<br>
tspview.C:414: warning: converting to 'int' from 'float'<br>
tspview.C: In function 'void DrawIndividual(GAGenome&amp;, Display*, Drawable, _XGC*, int, int)':<br>
tspview.C:438: warning: converting to 'int' from 'double'<br>
tspview.C:439: warning: converting to 'int' from 'double'<br>
tspview.C:440: warning: converting to 'int' from 'double'<br>
tspview.C:441: warning: converting to 'int' from 'double'<br>
tspview.C: At global scope:<br>
tspview.C:675: error: explicit specialization of 'int
GAListGenome&lt;int&gt;::write(std::ostream&amp;) const' must be
introduced by 'template &lt;&gt;'<br>
tspview.C:675: error: template-id 'write&lt;&gt;' for 'int
GAListGenome&lt;int&gt;::write(std::ostream&amp;) const' does not match
any template declaration<br>
tspview.C:675: error: invalid function declaration<br>
make: *** [tspview.o] Error 1<br>
<br>*************************************************************************<br><br>If any one have encountered such compilation error and solved it, please help me.<br>
<br>
Thanks.<br>
<br>
Jerry<br>