Problems compiling XGRASS
Justin Hickey
jhickey at impact1.hpcc.nectec.or.th
Fri Sep 12 13:32:44 EDT 1997
Hi Stephan
On Sep 12, 9:35am, Stephan Eickschen wrote:
> > #################################################################
> > /exports/sgi/GRASS/grass4.1/src/xgrass/libes/Xgi
> > make -f OBJ.irix/make.rules
> >
> > rm -f OBJ.irix/prop.o
> > cc -cckr -O -n32 -D_NO_PROTO -I/usr/include/X11 -I/usr/include/X11/Xm
> -I/exports/sgi/GRASS/grass4.1/src/include -DUSE_TERMIO -c prop.c
> > "prop.c", line 70: error(1515): a value of type "void" cannot be assigned
to
> > an entity of type "int"
> > err = XChangeProperty(display,window,property,XA_STRING,
> > ^
>
> Is there an update for prop.c, should I just insert a typecast or
> where might I re-define the XChangeProperty function as a int ???
Well, it looks like XChangeProperty is declared as returning void. So
therefore, you can get rid of the assignment as well as the check on err that
follows the call, since the function doesn't return an error status. The
interesting thing about this is that I have compiled Xgrass on our SGI power
challenge with IRIX 6.2 and I never got this error. The man page for
XChangeProperty does not list a return type so it would default to int which is
probably why I didn't get the error. You must have a different version of X
than I do, my version is X11R6. Oh well, that's life.
Hope this helps.
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
==================================================================
More information about the grass-user
mailing list