Login  Register

Re: BOOST_MESSAGE undefined

Posted by Piotr Gregor on Mar 04, 2013; 3:24pm
URL: http://quantlib.414.s1.nabble.com/BOOST-MESSAGE-undefined-tp14086p14097.html

on linux I had to add

> libboost_unit_test_framework.so

to the Linker->Libraries and  #include <boost/test/unit_test.hpp>.

    #define BOOST_MESSAGE( M )                  BOOST_TEST_MESSAGE( M )

is already present in test/test_tools.hpp.
on windows I have different #defines and this is not present, so I added it to the

> unit_test_log.hpp

where BOOST_TEST_MESSAGE is defined (in boost files to avoid same issue again in the case of other applications using BOOST_MESSAGE). BOOST_MESSAGE issue resolved but still can't disambiguate  
const void* = boost::test_tools::check_is_close
and  void* = boost::test_tools::check_is_small
because these are templates. so the solution is to remove it (test-suite compiles well) or use appropriate pointers to function templates
why always me?