我正在使用 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/