The boost documentation is outdated. Please read
    /usr/include/boost/test/unit_test.hpp
which defines "main" (i.e. it is not a real symbol in the lib*.so).
You will find the requirement for two precompiler defines
   if defined(BOOST_TEST_DYN_LINK) && defined(BOOST_TEST_MAIN)

Note: earlier boost libraries did not require those defines,
and I did only came across this as ALL my programs did 
not compile anymore after upgrading the operating system.
(actually to Ubuntu 08.04 w/ boost 1.34.1).

However, blame the boost developers, not the packagers.

-- 
Boost.Test linker error - undefined reference to 'main'
https://bugs.launchpad.net/bugs/162155
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to