[comp.unix.ultrix] compiling xgks

envbvs@epb2.lbl.gov (Brian V. Smith) (11/11/89)

Sorry if this gets posted twice, I'm not sure if it was accepted the
first time.

I am trying to compile the fortran library part of xgks.

/bin/cc -I. -I/usr/include/X11 -O  -c control.c
"control.c", line 410: illegal comparison of enums
"control.c", line 410: illegal comparison of enums

The objects in question are just enumerated constants, which according
to Kernighan and Ritchie, are just ints.
They are being compared to an enumerated constant and an integer.
How can there be an "illegal comparison of enums"?

I am doing this on Ultrix 3.0, vaxstation II.

This works fine on SunOs 4.0

_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.

envbvs@epb2.lbl.gov (Brian V. Smith) (11/11/89)

< I am trying to compile the fortran library part of xgks.
< 
< /bin/cc -I. -I/usr/include/X11 -O  -c control.c
< "control.c", line 410: illegal comparison of enums
< "control.c", line 410: illegal comparison of enums

It would appear that "cc" in Ultrix 3.0 doesn't allow relational
comparisons of enumerated values other than != and == (e.g. < or > ).
"vcc" (Vax-C) seems to work fine. 
_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.