[liblouis-liblouisxml] Error in building DLL in Liblouis 3.0.0.alpha2

  • From: "Jake Kyle" <jake@xxxxxxxxxxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Tue, 21 Jun 2016 15:20:57 +0100

Hi,

I’ve just tried to build the DLL for Liblouis-3.0.0.alpha2 using the 
instructions in README.windows. There was the error:
..\liblouis\lou_translateString.c(3993): error C2065: 'no_translate': 
undeclared identifier

I noticed that it is declared in the liblouis.h.in file in the 
“liblouis-3.0.0.alpha2\liblouis” sub-directory (line 49):
no_translate = 0x0010,

but it is not declared in the liblouis.h file in the 
“liblouis-3.0.0.alpha2\windows\include” sub-directory which I presume is the 
one that is used for building the DLL in Windows. Instead the equivalent line 
(55) declares:
“passage_break = 0x0010,”

Therefore I changed this line to
“no_translate = 0x0010,”

and it works!

Is this the right fix?

Jake Kyle

   

Other related posts: