Zdenko,
Can you tell me how have you linked your libraries?
I have tried many things, but nothing works!
Em quarta-feira, 28 de novembro de 2012 18h27min57s UTC-2, Vantuil Oliveira
escreveu:
>
> Hi Group,
> I'm having the following problem when I try to use GenericVector to
> initialize TessBaseAPI:
>
> 1>OpenCV_Teste.obj : error LNK2001: unresolved external symbol "public:
> void __cdecl ERRCODE::error(char const *,signed char,char const *,...)const
> " (?error@ERRCODE@@QBAXPBDC0ZZ)
> 1>C:\Users\Caroline\Documents\Visual Studio
> 2010\Projects\OpenCV_Teste\Debug\OpenCV_Teste.exe : fatal error LNK1120: 1
> unresolved externals
>
> This is the code:
> #include "baseapi.h"
> #include "genericvector.h"
> #include "strngs.h"
> ...
> GenericVector<STRING>* pars_vec = new GenericVector<STRING>();
> pars_vec->push_back("load_system_dawg");
> pars_vec->push_back("load_freq_dawg");
> pars_vec->push_back("load_punc_dawg");
> pars_vec->push_back("load_number_dawg");
> pars_vec->push_back("load_unambig_dawg");
> pars_vec->push_back("load_bigram_dawg");
> pars_vec->push_back("load_fixed_length_dawgs");
>
>
> GenericVector<STRING>* pars_values = new GenericVector<STRING>();
> pars_values->push_back("F");
> pars_values->push_back("F");
> pars_values->push_back("F");
> pars_values->push_back("F");
> pars_values->push_back("F");
> pars_values->push_back("F");
> pars_values->push_back("F");
>
> tesseract::OcrEngineMode mode = tesseract::OEM_TESSERACT_CUBE_COMBINED;
> api->Init("C:\tesseract\tesseract-ocr\tessdata", "eng", mode , &conf,
> 0, pars_vec, pars_values, false);
>
> Has anyone had the same problem?
> I have no idea how to solve this :(
>
> Thanks,
>
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en