-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdc84a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change solve following linker error:
2>libtesseract304-static.lib(adaptmatch.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall tesseract::ShapeClassifier::UnicharClassifySample(class tesseract::TrainingSample const &,struct Pix *,int,int,class GenericVector *)" (?UnicharClassifySample@ShapeClassifier@tesseract@@UAEHABVTrainingSample@2@PAUPix@@HHPAV?$GenericVector@VUnicharRating@tesseract@@@@@z)
2>libtesseract304-static.lib(adaptmatch.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall tesseract::ShapeClassifier::UnicharPrintResults(char const *,class GenericVector const &)const " (?UnicharPrintResults@ShapeClassifier@tesseract@@UBEXPBDABV?$GenericVector@VUnicharRating@tesseract@@@@@z)
2>libtesseract304-static.lib(adaptmatch.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall tesseract::TessClassifier::UnicharClassifySample(class tesseract::TrainingSample const &,struct Pix *,int,int,class GenericVector *)" (?UnicharClassifySample@TessClassifier@tesseract@@UAEHABVTrainingSample@2@PAUPix@@HHPAV?$GenericVector@VUnicharRating@tesseract@@@@@z)
2>libtesseract304-static.lib(tessclassifier.obj) : error LNK2001: unresolved external symbol "public: int __thiscall tesseract::Classify::CharNormTrainingSample(bool,int,class tesseract::TrainingSample const &,class GenericVector *)" (?CharNormTrainingSample@Classify@tesseract@@QAEH_NHABVTrainingSample@2@PAV?$GenericVector@UUnicharRating@tesseract@@@@@z)
2>..\LIB_Release\tesseract.exe : fatal error LNK1120: 4 unresolved externals
cdc84a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 4 unresolved externals was fixed on my side (but for VS2013) at intmatcher.h:42
namespace tesseract {
-- class UnicharRating;
++ struct UnicharRating;
}