安装 Wordnet 时出现 Tcl 错误

mon*_*sha 7 tcl software-installation

安装 Wordnet 时,出现以下错误;

stubs.c:132:14: 错误:“Tcl_Interp”没有名为“result”的成员

我尝试给出以下内容;

#define USE_INTERP_RESULT 1
Run Code Online (Sandbox Code Playgroud)

在 Wordnet 的“config.c”文件的末尾。然后它不起作用。请帮忙。

Joh*_*uhn 9

问题是您尝试使用 Tcl 8.6 编译 Wordnet。

Tcl 8.5 已弃用interp->result,Tcl 8.6 将其删除。

该指令

#define USE_INTERP_RESULT
Run Code Online (Sandbox Code Playgroud)

应该可以解决这个问题,但是您应该在头文件 ( .h) 之前添加它#include <tcl.h>,而不是在.c文件中。

  • 我能够解决错误。我在 WordNet3.0/src 的 stubs.c 中给了 #define USE_INTERP_RESULT 1 (2认同)

mon*_*sha 9

stubs.c文件中(将在WordNet-3.0/src目录中找到,包括以下指令

#define USE_INTERP_RESULT 1
Run Code Online (Sandbox Code Playgroud)

之前 #include <tcl.h>

和做做