Dear All,
I have some errors when compiling LibLouis 3.12 and 3.13 into
LibLouis.dll for windows. I have followed the instruction in source
folder to compile with Microsoft community 2017. Can you help examine
the errors below and advices, please?
I have no problem to compile 3.6 version but with 3.12 and 3.13, it has
the error:
..\liblouis\lou_translateString.c(2254): error C2057: expected constant
expression
..\liblouis\lou_translateString.c(2254): error C2466: cannot allocate an
array of constant size 0
..\liblouis\lou_translateString.c(2254): error C2133: 'dots': unknown size
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.EXE"'
: return
code '0x2'
Then, I checked with the code and see it stucks at the line: widechar
dots[length];
I changed to: widechar dots[1024];
Now it can compile successfully and got the Liblouis.dll for all 3
versions, 3.6, 3.12 and 3.13. However, when calling functions like
lou_translateString and others, it informs cannot find the function.
I have tried to compile with both Microsoft community 2017 and 2019,
both have the same errors.
Thanks in advance and look forward to your help.
Phúc
For a description of the software, to download it and links to
project pages go to http://liblouis.org
Donate: http://liblouis.org/sponsoring