开发者

Dealing with the example.cpp in CRF++ toolkit

I am just starting to learn about the use of CRF++ toolkit. I downloaded the linux version of CRF++ 0.54 , When i try to compile the example.cpp under sdk/ with the command g++ -o example example.cpp there comes the problem:

hpl@hpl-desktop:~/Documents/CRF/CRF++-0.54$ g++ -o a example.cpp /tmp/ccmJQgGu.o: In function main': example.cpp:(.text+0x12): undefined reference toCRFPP::createTagger(char const*)' example.cpp:(.text+0x22):开发者_如何学JAVA undefined reference to `CRFPP::getTaggerError()' collect2: ld returned 1 exit status

I would appreciate any suggestions on how to make the program run.

David


The 4th line in example.cpp says: // c++ -O3 example.cpp -lcrfpp

Why don't you try that?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜