To setup ~/tl/dbgC/D0901aMoses/ver11 Make sure language model SRILM is compiled in ~/tl/binC/B0901aSRILM157/ver01. Specifically we need the include and lib directories. Create a new subproject, and name it as Amoses, copy *.cpp and *.h files into the subproject, and remove LanguageModelIRSTLM.cpp. Link the include file of srilm project into this folder. Create a new subproject, and name it as AmosesCmd. Include the library from srilm, i.e. liboolm.a, libmisc.a, and libdstruct.a. Moreover, we need /usr/lib64/libz.a or -lz. In LINK LIBRARY OUTSIDE PROJECT add/edit the link to external library path and static library, e.g. -L/storage/sda9/tl09/binC/B0901aSRILM157/ver01/lib/i686-m64,-L/storage/sda9/tl09/dbgC/D0901aMoses/ver11/debug/src/Amoses/, -lmosesA, -lmisc, -loolm, -ldstruct, -lz. Set CXXFLAGS in SUBPROJECT Option using the following compiler setting: -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -DHAVE_SRILM