<div dir="ltr">Hi Andreas,<div><br></div><div style>I just addressed this problem. What I need to do is just changing the order of "<span style="font-family:arial,sans-serif;font-size:13px">-ldstruct -lflm -lmisc -loolm -ldl -lpthread</span>" ...</div>
<div style><br></div><div style>I change it to  "<span style="font-family:arial,sans-serif;font-size:13px">-loolm </span><span style="font-size:13px;font-family:arial,sans-serif">-ldstruct -lflm -lmisc -ldl -lpthread</span>" and it works ...</div>
<div style><br></div><div style><br></div><div style>Thank you very much for your help.</div><div style><br></div><div style>Best,</div><div style>Yi</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 27, 2013 at 8:03 PM, Yi Yang <span dir="ltr"><<a href="mailto:yangyiycc@gmail.com" target="_blank">yangyiycc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Andreas,<div><br></div><div>Thanks for your reply.</div><div><br></div><div>I rebuilt SRILM again. My machine is 64bit Linux. The process is as following:</div>
<div><br></div><div>1.  set NO_TCL = X in common/Makefile.machine.i686-m64</div>
<div>2. make World</div><div>3. make MACHINE_TYPE=i686-m64 World</div><div>4. make test</div><div>5. make cleanest</div><div><br></div><div>And after I run make test, the last lines of the output are:</div>
<div><br></div><div><div>*** Running test lattice-word-posteriors ***</div><div><br></div><div>real<span style="white-space:pre-wrap">      </span>0m0.033s</div><div>user<span style="white-space:pre-wrap">     </span>0m0.006s</div>

<div>sys<span style="white-space:pre-wrap">       </span>0m0.023s</div><div>lattice-word-posteriors: stdout output IDENTICAL.</div><div>lattice-word-posteriors: stderr output IDENTICAL.</div><div>make[1]: Leaving directory `/nethome/yyang319/software/srilm/lattice/test'</div>

<div><br></div><div><br></div><div>I did not meet any errors during the building process. However, I still got the same errors when I try to compile my program with srilm library. </div><div><br></div><div>
Did I make some mistakes while building SRILM?</div><div><br></div><div>Thank you so much.</div><span class="HOEnZb"><font color="#888888"><div>Yi</div><div><br></div><div><br></div></font></span></div></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Feb 27, 2013 at 5:19 PM, Andreas Stolcke <span dir="ltr"><<a href="mailto:stolcke@icsi.berkeley.edu" target="_blank">stolcke@icsi.berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><div>
    <div>On 2/27/2013 7:42 AM, Yi Yang wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I have a problem when I try to compile my C++ problem with
          srilm library.</div>
        <div><br>
        </div>
        <div>My commend is</div>
        <div><br>
        </div>
        <div>
          <div>g++ srilmTest.cc
            -I/nethome/yyang319/software/srilm/include/
            -L/nethome/yyang319/software/srilm/lib/i686-m64/ -ldstruct
            -lflm -lmisc -loolm -ldl -lpthread -o srilmTest</div>
        </div>
      </div>
    </blockquote>
    <br></div>
    Did SRIM itself build correctly?  Have you run '"make test" and did
    it work?<div><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>And I got a lot of this kind of errors:</div>
          <div><br>
          </div>
          <div>
            <div>/nethome/yyang319/software/srilm/lm/src/../../include/TLSWrapper.h:50:
              undefined reference to `srilm_tls_get_key()'</div>
            <div>/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o):/nethome/yyang319/software/srilm/lm/src/../../include/TLSWrapper.h:50:
              more undefined references to `srilm_tls_get_key()' follow</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br></div>
    If you are having trouble with TLS you should try compiling with
    -DNO_TLS .<div><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div><br>
            </div>
          </div>
          <div><br>
          </div>
          <div>/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o):
            In function `LHash<unsigned int,
            NBestWordInfo>::alloc(unsigned int)':</div>
          <div>/nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:140:
            undefined reference to `BM_malloc'</div>
          <div>/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o):
            In function `LHash<unsigned int,
            NBestWordInfo>::insert(unsigned int, bool&)':</div>
          <div>/nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:407:
            undefined reference to `BM_free'</div>
        </div>
      </div>
    </blockquote></div>
    This strongly indicates that your libraries didn't all build
    properly (hence my question above).<br>
    BM_malloc, BM_free are defined in -ldstruct .<br>
    <br>
    Andreas<br>
    <br>
    <blockquote type="cite"><div>
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>I tried to address it for a long time, but
            failed.</div>
          <div><br>
          </div>
          <div>Does anybody have solutions for this problem?</div>
          <div><br>
          </div>
          <div>Thanks a lot!</div>
          <div><br>
          </div>
          -- <br>
          Sincerely,<br>
          Yi Yang<br>
          <a href="http://www.cc.gatech.edu/%7Eyyang319/" target="_blank">http://www.cc.gatech.edu/~yyang319/</a><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div><pre>_______________________________________________
SRILM-User site list
<a href="mailto:SRILM-User@speech.sri.com" target="_blank">SRILM-User@speech.sri.com</a>
<a href="http://www.speech.sri.com/mailman/listinfo/srilm-user" target="_blank">http://www.speech.sri.com/mailman/listinfo/srilm-user</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>Sincerely,<br>Yi Yang<br><a href="http://www.cc.gatech.edu/~yyang319/" target="_blank">http://www.cc.gatech.edu/~yyang319/</a><br>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sincerely,<br>Yi Yang<br><a href="http://www.cc.gatech.edu/~yyang319/" target="_blank">http://www.cc.gatech.edu/~yyang319/</a><br>
</div>