I’ve recently had need to compile SRILM on my Mac, which runs OS X 10.9 (Mavericks). I have Mac Ports installed but found that I had to change to the out-of-box C/C++ compiler in order to get SRILM to compile. It was simple: in common/Makefile.machine.macosx
I simply changed
CC = cc $(GCC_FLAGS)
CXX = c++ $(GCC_FLAGS) -DINSTANTIATE_TEMPLATES
to
CC = clang $(GCC_FLAGS)
CXX = clang++ $(GCC_FLAGS) -DINSTANTIATE_TEMPLATES
May it work for you as well!
Post a Comment
You must be logged in to post a comment.