Tcl error while installing Wordnet

While installing Wordnet, I'm getting the following error;

stubs.c:132:14: error: ‘Tcl_Interp’ has no member named ‘result’

I tried giving following;

#define USE_INTERP_RESULT 1

at the end of "config.c" file of the Wordnet. Then als its not working. Kindly help.


The problem is that you try to compile Wordnet with Tcl 8.6.

Tcl 8.5 deprecated interp->result and Tcl 8.6 removed it.

The directive

#define USE_INTERP_RESULT

should solve that, but you should add that in an header file (.h) before you #include <tcl.h>, not in a .c file.


In the stubs.c file (which will be found in the WordNet-3.0/srcdirectory include the following directive

#define USE_INTERP_RESULT 1

before the #include <tcl.h>

and the do the make