[galib] problem in installing GAlib graphic's examples

Jerry, Chi Hang Yau jerry.chyau at gmail.com
Mon Aug 4 06:11:53 EDT 2008


Hello,

I encountered a problem in installing GAlib graphic's examples on Linux
platform.
According to the instruction from the web, after typing:
To build the graphic examples:
            % cd examples/graphic; make

I got such error during compilation:

*****************************************************************************************
[root at localhost graphic]# make
g++ -Wall -O -g -DUSE_MOTIF -I../.. -c tspview.C
tspview.C: In function 'void DrawCB(_WidgetRec*, void*, void*)':
tspview.C:413: warning: converting to 'int' from 'float'
tspview.C:414: warning: converting to 'int' from 'float'
tspview.C: In function 'void DrawIndividual(GAGenome&, Display*, Drawable,
_XGC*, int, int)':
tspview.C:438: warning: converting to 'int' from 'double'
tspview.C:439: warning: converting to 'int' from 'double'
tspview.C:440: warning: converting to 'int' from 'double'
tspview.C:441: warning: converting to 'int' from 'double'
tspview.C: At global scope:
tspview.C:675: error: explicit specialization of 'int
GAListGenome<int>::write(std::ostream&) const' must be introduced by
'template <>'
tspview.C:675: error: template-id 'write<>' for 'int
GAListGenome<int>::write(std::ostream&) const' does not match any template
declaration
tspview.C:675: error: invalid function declaration
make: *** [tspview.o] Error 1

*************************************************************************

If any one have encountered such compilation error and solved it, please
help me.

Thanks.

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20080804/451c4806/attachment.htm


More information about the galib mailing list