errors while compiling gaview.C

sylvain Alborini alborin9 at etu.unige.ch
Fri Jul 11 10:41:07 EDT 2003


Hi lots!
I'm getting these errors while compiling the graphical example gaview.C (using
g++ v2.95.3 on solaris, with #define USE_MOTIF commented):

~...examples/graphic>make
g++ -Wall -O -g -fexceptions  -I/ldi/galib/include -c gaview.C
gaview.C:188: initialization to `void *' from `const char *' discards qualifiers

gaview.C:188: initialization to `void *' from `const char *' discards qualifiers

gaview.C:188: initialization to `void *' from `const char *' discards qualifiers

gaview.C:188: initialization to `void *' from `const char *' discards qualifiers

gaview.C:188: initialization to `void *' from `const char *' discards qualifiers

gaview.C:188: initialization to `void *' from `const char *' discards qualifiers

gaview.C: In function `void DrawPopulation(_WidgetRec *, const GAPopulation
&, _XGC *, _XGC *)':
gaview.C:552: warning: assignment to `short int' from `float'
gaview.C:554: warning: assignment to `short int' from `float'
gaview.C:557: warning: assignment to `int' from `float'
gaview.C:559: warning: assignment to `int' from `float'
gaview.C:564: warning: assignment to `short int' from `const float'
gaview.C:566: warning: assignment to `short int' from `const float'
gaview.C:569: warning: assignment to `int' from `const float'
gaview.C:571: warning: assignment to `int' from `const float'
*** Error code 1
make: Fatal error: Command failed for target `gaview.o'


I've seen on the mailing list archive that this problem had already been posted
on March 2001, but unfortunately there is no answer...

Any idea/explanation to help me fix that problem??

Thanks
Sylvain



More information about the galib mailing list