
"Minkoo Seo"
Hi list.
This does not compile though this is the program shown in the document. The errors are:
/usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../../lib64/crt1.o (.text+0x20): In function `_start': : undefined reference to `main' /tmp/ccytTZBu.o(.text+0x8f): In function `force_division_by_zero()': backoff_ngram_lm_test.cpp: undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools:: predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)' /tmp/ccytTZBu.o(.text+0x173): In function `init_unit_test_suite(int, char*)':
You need to link with the pre-built standalone library. Use either Jam with Boost.Build system to build the library or you could use your own make system. But in that case you will need to come up with makefile yourself. The framework doesn't need much special compilation flags. Consult docs and Jam for more details. Gennadiy