<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 4/24/2012 3:27 PM, Chow Jonathan wrote:
<blockquote cite="mid:SNT109-W1148CFCFCD9C026FB57AB8CB260@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 9pt;
font-family:新細明體
}
--></style>
<div dir="ltr">
<span style="color: rgb(42, 42, 42); font-family: PMingliu,
Tahoma, Verdana, Arial, sans-serif; line-height: 20px;
background-color: rgb(255, 255, 255); ">Hi,</span>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); "><br>
</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); ">I was trying to
compile SRILM on Mac OS X Lion 10.7</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); "><br>
</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); ">It kept throwing me
the error</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, A! rial, sans-serif;
background-color: rgb(255, 255, 255); "><br>
</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); ">
<div>LatticeIndex.cc:78:6: error: variable length array of
non-POD element type 'NBestWordInfo'</div>
<div> makeArray(NBestWordInfo, roundedNgram, len +
1);</div>
</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); "><br>
</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); ">Can anyone help me on
this please?</div>
</div>
</blockquote>
<br>
In case you are using the clang compiler, the following change (from
<a class="moz-txt-link-abbreviated" href="mailto:kutlak.roman@gmail.com">kutlak.roman@gmail.com</a>) should fix your problem.<br>
In dstruct/src/Array.h, replace the line<br>
<br>
#if !defined(DEBUG) && defined(__GNUC__) &&
(!defined(__INTEL_COMPILER) || __INTEL_COMPILER >=900)<br>
<br>
with<br>
<br>
#if !defined(DEBUG) && defined(__GNUC__) &&
!defined(__clang__) && (!defined(__INTEL_COMPILER) ||
__INTEL_COMPILER >=900)<br>
<br>
Andreas <br>
<br>
<br>
<br>
<br>
<br>
<blockquote cite="mid:SNT109-W1148CFCFCD9C026FB57AB8CB260@phx.gbl"
type="cite">
<div dir="ltr">
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); "><br>
</div>
<div style="line-height: 20px; color! : rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans
-serif; background-color: rgb(255, 255, 255); ">Thanks,</div>
<div style="line-height: 20px; color: rgb(42, 42, 42);
font-family: PMingliu, Tahoma, Verdana, Arial, sans-serif;
background-color: rgb(255, 255, 255); ">Jonathan</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SRILM-User site list
<a class="moz-txt-link-abbreviated" href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a>
<a class="moz-txt-link-freetext" href="http://www.speech.sri.com/mailman/listinfo/srilm-user">http://www.speech.sri.com/mailman/listinfo/srilm-user</a></pre>
</blockquote>
<br>
</body>
</html>