SRILM and GCC 4.1.1

Andreas Stolcke stolcke at speech.sri.com
Tue Oct 31 11:36:14 PST 2006


make sure the c++ compiler is invoked with

 -DINSTANTIATE_TEMPLATES

If it is then there seems to be a strange problem with your linker or 
compiler installation that I cannot reproduce.

--Andreas

In message <fcaeb9bf0610311105x32325a33tc910a5c4a19460cd at mail.gmail.com>you wro
te:
> On 11/1/06, Andreas Stolcke <stolcke at speech.sri.com> wrote:
> > $SRILM/common/Makefile.machine.i686-gcc4
> Thank you. After setting MACHINE_TYPE=i686-gcc4, I still got errors:
> 
> make[2]: Entering directory `/home/pclouds/tmp/srilm/lm/src'
> /usr/bin/g++    -I. -I/home/pclouds/tmp/srilm/include   -u matherr
> -L/home/pclouds/tmp/srilm/lib/i686-gcc4  -g -O3 -o
> ../bin/i686-gcc4/ngram ../obj/i686-gcc4/ngram.o
> ../obj/i686-gcc4/liboolm.a -lm -ldl
> /home/pclouds/tmp/srilm/lib/i686-gcc4/libflm.a
> /home/pclouds/tmp/srilm/lib/i686-gcc4/libdstruct.a
> /home/pclouds/tmp/srilm/lib/i686-gcc4/libmisc.a -ltcl -lm 2>&1 |
> c++filt
> ../obj/i686-gcc4/liboolm.a(Vocab.o): In function `LHash<char const*,
> unsigned int>::remove(char const*, bool&)':
> /home/pclouds/tmp/srilm/include/LHash.cc:416: undefined reference to
> `LHash<char const*, unsigned int>::removedData'
> /home/pclouds/tmp/srilm/include/LHash.cc:417: undefined reference to
> `LHash<char const*, unsigned int>::removedData'
> /home/pclouds/tmp/srilm/include/LHash.cc:424: undefined reference to
`LHash<char const*, unsigned int>::removedData'
> /home/pclouds/tmp/srilm/include/LHash.cc:473: undefined reference to
> `LHash<char const*, unsigned int>::removedData'
> 
> I'm using SRILM 1.5.0
> 
> > Andreas
> >
> >
> 
> 
> -- 
> Duy




More information about the SRILM-User mailing list