当前位置:首页 > Liunx教程 >

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

发布时间:2024-02-22 12:17:44 作者:佚名 阅读:(16)

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

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)、保存之后,重新编译即可


以上就是云梦编程为大家介绍的关于sphinxexpr.cpp:1746:43: error:'ExprEval' was not declared in this scope的解决方法,了解更多相关文章请关注云梦编程网!

© 2023 - 云梦编程网 版权所有 鲁ICP备2021017318号-4