[SRILM User List] Installing SRILM

Andreas Stolcke stolcke at icsi.berkeley.edu
Tue Apr 24 20:33:53 PDT 2012


On 4/24/2012 3:27 PM, Chow Jonathan wrote:
> Hi,
>
> I was trying to compile SRILM on Mac OS X Lion 10.7
>
> It kept throwing me the error
>
> LatticeIndex.cc:78:6: error: variable length array of non-POD element 
> type 'NBestWordInfo'
>             makeArray(NBestWordInfo, roundedNgram, len + 1);
>
> Can anyone help me on this please?

In case you are using the clang compiler, the following change (from 
kutlak.roman at gmail.com) should fix your problem.
In dstruct/src/Array.h, replace the line

     #if !defined(DEBUG) && defined(__GNUC__) && 
(!defined(__INTEL_COMPILER) || __INTEL_COMPILER >=900)

with

     #if !defined(DEBUG) && defined(__GNUC__) && !defined(__clang__) && 
(!defined(__INTEL_COMPILER) || __INTEL_COMPILER >=900)

Andreas





>
> Thanks,
> Jonathan
>
>
> _______________________________________________
> SRILM-User site list
> SRILM-User at speech.sri.com
> http://www.speech.sri.com/mailman/listinfo/srilm-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20120424/964a8719/attachment.html>


More information about the SRILM-User mailing list