Skip to content

Commit

Permalink
fix VS2010 build
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Jul 11, 2015
1 parent 462eff5 commit cdc84a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classify/adaptmatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#endif

#include <ctype.h>
#include "shapeclassifier.h"
#include "ambigs.h"
#include "blobclass.h"
#include "blobs.h"
Expand All @@ -48,7 +49,6 @@
#include "pageres.h"
#include "params.h"
#include "picofeat.h"
#include "shapeclassifier.h"
#include "shapetable.h"
#include "tessclassifier.h"
#include "trainingsample.h"
Expand Down

2 comments on commit cdc84a5

@zdenop
Copy link
Contributor Author

@zdenop zdenop commented on cdc84a5 Jul 11, 2015

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

@spSerg
Copy link
Contributor

@spSerg spSerg commented on cdc84a5 Jul 11, 2015

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

Please sign in to comment.