<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 2/27/2013 7:42 AM, Yi Yang wrote:<br>
</div>
<blockquote
cite="mid:CAKNTL4ipP4VSA=RAcv_M+mEcgLLBKsOjY3T6niPi-LrHGs9RRg@mail.gmail.com"
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>
Did SRIM itself build correctly? Have you run '"make test" and did
it work?<br>
<blockquote
cite="mid:CAKNTL4ipP4VSA=RAcv_M+mEcgLLBKsOjY3T6niPi-LrHGs9RRg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
<div><br>
</div>
<div style="">And I got a lot of this kind of errors:</div>
<div style=""><br>
</div>
<div style="">
<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>
If you are having trouble with TLS you should try compiling with
-DNO_TLS .<br>
<br>
<blockquote
cite="mid:CAKNTL4ipP4VSA=RAcv_M+mEcgLLBKsOjY3T6niPi-LrHGs9RRg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div style="">
<div><br>
</div>
</div>
<div style=""><br>
</div>
<div style="">/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>
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
cite="mid:CAKNTL4ipP4VSA=RAcv_M+mEcgLLBKsOjY3T6niPi-LrHGs9RRg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
<div><br>
</div>
<div style="">I tried to address it for a long time, but
failed.</div>
<div style=""><br>
</div>
<div style="">Does anybody have solutions for this problem?</div>
<div style=""><br>
</div>
<div style="">Thanks a lot!</div>
<div style=""><br>
</div>
-- <br>
Sincerely,<br>
Yi Yang<br>
<a moz-do-not-send="true"
href="http://www.cc.gatech.edu/%7Eyyang319/" target="_blank">http://www.cc.gatech.edu/~yyang319/</a><br>
</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>