It looks like you have problem with linking library. I modified code of
 example  
(tesseract-ocr-API-Example-vs2008.zip<http://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-API-Example-vs2008.zip>)
and code compiled ok for me (in VS 2008)...

-- 
Zdenko

On Wed, Nov 28, 2012 at 9:27 PM, Vantuil Oliveira <[email protected]>wrote:

> 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
>

-- 
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

Reply via email to