Sha*_*h W 2 c++ compiler-construction gcc sundance
我正在使用gcc 3.4.6编译Sundance-4.37.SUNDANCE(判断提取和概念提取的句子)和自动注释是由犹他大学的NLP实验室开发的软件.Sundance预装了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
Run Code Online (Sandbox Code Playgroud)
composition.h的第130-132行是:
protected:
Word* Constituent::getWordhelper(unsigned int&, unsigned int) const;
};
Run Code Online (Sandbox Code Playgroud)
任何提示将不胜感激.
您不要使用类名作为类中成员函数的前缀,只需在外部定义它们即可.只需删除该前缀即可.
protected:
Word* getWordhelper(unsigned int&, unsigned int) const;
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
579 次 |
| 最近记录: |