Linking Error

175 views
Skip to first unread message

supriya Das

unread,
Jun 4, 2015, 7:10:27 AM6/4/15
to tesser...@googlegroups.com
Hello everybody,

  When i am trying to use tesseract::ChoiceIterator    bellow error is occurring. Kindly help me.


      " LNK2019: unresolved external symbol "public: __thiscall tesseract::ChoiceIterator::~ChoiceIterator(void)" (??1ChoiceIterator@tesseract@@QAE@XZ) referenced in function _wmain"

   I included following library  
                                         libtesseract302.lib
                                         libtesseract302d.lib

My code is as follow,

   tesseract::ResultIterator* ri = api->GetIterator();
tesseract::PageIteratorLevel level = tesseract::RIL_SYMBOL;
if(ri != 0) {
do {
const char* symbol = ri->GetUTF8Text(level);
float conf = ri->Confidence(level);
if(symbol != 0) {
printf("symbol %s, conf: %f", symbol, conf);
bool indent = false;
tesseract::ChoiceIterator ci(*ri);
do {
if (indent) printf("\t\t ");
printf("\t- ");
const char* choice = ci.GetUTF8Text();
printf("%s conf: %f\n", choice, ci.Confidence());
indent = true;
} while(ci.Next());
}
printf("---------------------------------------------\n");
delete[] symbol;
} while((ri->Next(level)));
}

zdenko podobny

unread,
Jun 5, 2015, 3:25:46 AM6/5/15
to tesser...@googlegroups.com
As far as I remember there was linking problem only with with debug shared library. Release version worked fine...

Did you included both libraries at the same time?


Zdenko

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/2f71b417-adde-483d-98cc-11e394bb1d1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

supriya Das

unread,
Jun 5, 2015, 4:52:17 AM6/5/15
to tesser...@googlegroups.com
yes i included both the libraries.  libtesseract302.lib ,libtesseract302d.lib is any other libraries are need to include?

Quan Nguyen

unread,
Jun 5, 2015, 8:35:00 AM6/5/15
to tesser...@googlegroups.com
ChoiceIterator is specific to Tesseract 3.04, I believe.

supriya Das

unread,
Jun 5, 2015, 9:11:37 AM6/5/15
to tesser...@googlegroups.com
hello  Quan Nguyen, 
   Thanks for your answer. Is it available to use. If available please give me the link.

Quan Nguyen

unread,
Jun 5, 2015, 12:47:18 PM6/5/15
to tesser...@googlegroups.com
It's currently in the repo. Download and compile it.

https://code.google.com/p/tesseract-ocr/source/checkout

supriya Das

unread,
Jun 8, 2015, 12:24:12 AM6/8/15
to tesser...@googlegroups.com
Thanks Quan Nguyen for your reply, but i am facing Error "error LNK1104: cannot open file 'zlib125-static-mtdll-debug.lib'" when i am trying to build Tesseract 3.04.  I am new in Tesseract if you hep me i will be highly obliged. 

supriya Das

unread,
Jun 8, 2015, 2:25:10 AM6/8/15
to tesser...@googlegroups.com
also facing problem on linking error  error LNK1181: cannot open input file 'liblept171-static-mtdll.lib. kindly help me.
Reply all
Reply to author
Forward
0 new messages