|
Boost Users : |
From: Bobby Ward (bobbyrward_at_[hidden])
Date: 2006-08-01 12:27:07
The unit test library uses program-options and filesystem...
Therefore you do.
On 8/1/06, Gennadiy Rozental <gennadiy.rozental_at_[hidden]> wrote:
>
>
> "Roman Neuhauser" <neuhauser_at_[hidden]> wrote in message
> news:20060801165504.GB8222_at_dagan.sigpipe.cz...
> ># gennadiy.rozental_at_[hidden] / 2006-08-01 10:44:48 -0400:
> >> "Minkoo Seo" <minkoo.seo_at_[hidden]> wrote in message
> >> news:loom.20060801T091530-365_at_post.gmane.org...
> >> > 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.
> >
> > Yeah, the docs are quite explicit about the need to link with the
> > libs. Your Makefile could be as simple as:
> >
> > CXXFLAGS= -I/usr/local/include
> > LDFLAGS= -L/usr/local/lib -lboost_filesystem -lboost_program_options
>
> These does not look right . I don;t think you need program options or
> filesystem to build a unbit test framework *library* ;)
>
> Gennadiy
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- Bobby Ward ------------------------------ bobbyrward_at_[hidden] http://sf.net/projects/combustion
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net