gpt4 book ai didi

c++ - 编译 Sundance-4.73

转载 作者:搜寻专家 更新时间:2023-10-31 00:03:21 24 4
gpt4 key购买 nike

我正在使用 gcc 3.4.6 编译 Sundance-4.37。 SUNDANCE(Sentence UNDerstanding AND Concept Extraction)和autoannotate是犹他大学NLP实验室开发的软件。圣丹斯电影节预包装有 OpinionFinder .

它是使用安装脚本编译的。编译时,抛出如下错误:

creating ../src/Makefile
g++ -Wall -Wno-deprecated -pipe -g -static -I../include -DHOME=\"/home/shahw/opinionfinder/software/sundance-4.37/\" -c -fPIC -o shared/activation.o activation.C
constituent.h:131: error: extra qualification ‘Constituent::’ on member ‘getWordhelper’
make: *** [shared/activation.o] Error 1

constituent.h 的第 130-132 行是:

protected:
Word* Constituent::getWordhelper(unsigned int&, unsigned int) const;
};

如有任何提示,我们将不胜感激。

最佳答案

您不使用类名作为类内部成员函数的前缀,只要在外部定义它们即可。只需删除该前缀即可。

protected:
  Word* getWordhelper(unsigned int&, unsigned int) const;
};

关于c++ - 编译 Sundance-4.73,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6313426/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com