[SRILM User List] SRILM source code

Kutlak Roman kutlak.roman at gmail.com
Mon Apr 2 12:50:19 PDT 2012


Hello Andreas,

I was compiling srilm using clang and libcxx (c++11) and got an error when compiling LaticeIndex.cc on line 78. The problem is that makeArray tries to create a variable length array and the compiler does not support this. Could you please add an appropriate exception for clang into Array.h line 92. Or perhaps better yet, just define it for all compilers as  StaticArray<T> A(n).

In case someone also tries to do the same, there is one more problem.
For some reason clang does not like the call to bind() in LM.cc line 876 (or somewhere there). This must be an error on the part of the library implementer as bind() is supposed to return int, but clang did not like it. I just removed the error checking and did not use the return value and that works.

Kind regards,

Roman




More information about the SRILM-User mailing list