[GRASSLIST:2079] Re: tk8.5 troubles with CVS build

Glynn Clements glynn.clements at virgin.net
Tue Dec 16 23:13:32 EST 2003


Christopher Fonnesbeck wrote:

> Has anyone tried using tk8.5 when building 5.7?

I hadn't realised that Tk 8.5 existed until now.

> I get the following  
> build error:

> interface.h:266: error: conflicting types for `Tk_SetAppName'
> /usr/local/include/tkDecls.h:573: error: previous declaration of  
> `Tk_SetAppName'

Right. That's because of this:

#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==4
    CONST char *Tk_SetAppName(Tk_Window, CONST char *);
#else
    char *Tk_SetAppName(Tk_Window, char *);
#endif

It should probably be:

#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION>=4 || TK_MAJOR_VERSION>8
    CONST char *Tk_SetAppName(Tk_Window, CONST char *);
#else
    char *Tk_SetAppName(Tk_Window, char *);
#endif

I.e. it should apply to Tk 8.4 and upwards, not just 8.4.

However, that will not be the only problem; someone will also need to
add tkInt8.5.h and tkIntDecls8.5.h, and modify the top of togl.c
accordingly.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list