[SRILM User List] Srilm C++ library compile problem

Yi Yang yangyiycc at gmail.com
Wed Feb 27 07:42:41 PST 2013


Hi,

I have a problem when I try to compile my C++ problem with srilm library.

My commend is

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


And I got a lot of this kind of errors:

/nethome/yyang319/software/srilm/lm/src/../../include/TLSWrapper.h:50:
undefined reference to `srilm_tls_get_key()'
/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


/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o): In
function `LHash<unsigned int, NBestWordInfo>::alloc(unsigned int)':
/nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:140:
undefined reference to `BM_malloc'
/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o): In
function `LHash<unsigned int, NBestWordInfo>::insert(unsigned int, bool&)':
/nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:407:
undefined reference to `BM_free'


I tried to address it for a long time, but failed.

Does anybody have solutions for this problem?

Thanks a lot!

-- 
Sincerely,
Yi Yang
http://www.cc.gatech.edu/~yyang319/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20130227/fed81dde/attachment.html>


More information about the SRILM-User mailing list