agl / jbig2enc

JBIG2 Encoder
Other
251 stars 86 forks source link

'print_pix': identifier not found #37

Closed Fendayen closed 11 years ago

Fendayen commented 11 years ago

Hello, everyone. After following the VC++ instructions from the INSTALL file (https://github.com/agl/jbig2enc/blob/master/INSTALL), I am receiving the following error when I attempt to build the solution:

: error C3861: 'print_pix': identifier not found

Does anyone happen to know the cause of this error, or how to fix it?

zdenop commented 11 years ago

The error is there because of this commit[1] removed function print_pix, but there was not removed code that calls print_pix. You can fix if manually by removing this part:

ifdef UNIFICATION_DEBUGGING

      fprintf(stderr, "Found PIXes recognized as equivalent");
      print_pix(pixa->pix[(_first_template_it)]);
      print_pix(pixa->pix[(_second_template_it)]);

endif

from jbib2enc.cc

[1] https://github.com/agl/jbig2enc/commit/0c3a32606f11f1e028f7736595086520e8ad94ff

Fendayen commented 11 years ago

That seemed to work. Thank you for the assistance!