[GRASS5] grass cvs snapshot from 26. Feb.
Bill Brown - staff
brown at gis.uiuc.edu
Thu Mar 8 09:43:18 EST 2001
>
>> I can no longer compile NVIZ2.2, i get an error that
>> the initializer element in togl.c is not constant. I remember this
>> error, but don't know a solution. Maybe some reodering of the
>> include directives can help. With the setup that triggered the
>> __INTADDR__ error NVIZ2.2 compiled, if i remember correct.
>Mhh, nothing was changed here except the order of include directories
>in make.mid (required for solaris).
>
Andreas & Markus,
I had to go into tk.h and make this change:
/*
* #ifdef offsetof
* #define Tk_Offset(type, field) ((int) offsetof(type, field))
* #else
* #define Tk_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
* #endif
Somewhere offsetof gets defined, but I can't find it and it's not a constant, so replacing with the following - Wed Feb 14 2001 BB:
*/
#define Tk_Offset(type, field) ((int) ((char *) &((type *) 0)->field))
I'm still not sure where offsetof gets defined - thought it might
have been in a stray .h file I had included in my setup. There should
be a cleaner solution - maybe undef Tk_Offset if IRIX and redefine it?
- Bill
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list