Hello,<br><br>I encountered a problem in installing GAlib graphic's examples on Linux platform.<br>According to the instruction from the web, after typing:<br>To build the graphic examples: <br>
% 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&, 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<int>::write(std::ostream&) const' must be
introduced by 'template <>'<br>
tspview.C:675: error: template-id 'write<>' for 'int
GAListGenome<int>::write(std::ostream&) 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>