sphinxexpr.cpp:1746:43: error:‘ExprEval’ was not declared in this scope

来自:吾爱编程
时间:2020-11-25
阅读:

今天在服务器安装coreseek的,编译csft的时候提示:sphinxexpr.cpp:1746:43: error:'ExprEval' was not declared in this scope,接下来为大家介绍一下解决方法,有需要的小伙伴可以参考一下:

1、错误提示:

sphinxexpr.cpp:1746:43: error:‘ExprEval’ was not declared in this scope

2、解决方法:

    (1)、我们可以根据错误信息中给出的修改方法去修改对应的位置即可

    (2)、一共有三处需要调整,分别是1746行、1777行和1823行

vim /usr/local/coreseek-4.1-beta/csft-4.1/src/sphinxexpr.cpp

    将文件中的

T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc brAIndamage

    替换为:

T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage

    (3)、保存之后,重新编译即可

返回顶部
顶部