Compile Tesseract for Visual Studio 2013

▼魔方 西西 提交于 2019-12-11 02:47:50

问题


I'm trying to use the tesseract in visual studio 2013. I'm using "libtesseract302.lib" in the the linker -> Input (not "libtesseract302-static.lib") and everythings was OK, and it's compiled and run, but when I tried to use this code:

tesseract::ResultIterator* ri;
tesseract::ChoiceIterator ci(*ri);

I got five link errors like this:

Error   3   error LNK2028: unresolved token (0A000567)
"public: __thiscall tesseract::ChoiceIterator::ChoiceIterator
(class tesseract::LTRResultIterator const &)"
(??0ChoiceIterator@tesseract@@$$FQAE@ABVLTRResultIterator@1@@Z)
referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)

I think it's because I didn't use the static library, so I tried that, but I got many linking errors. I think that is due to the static library having been built before using vs2008 that I got from here.

Tesseract

So I'm trying now to compile the tesseract as static lib in vs2013. Will solve the issue, or should I try something else?

来源:https://stackoverflow.com/questions/28582505/compile-tesseract-for-visual-studio-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!