$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-22 02:27:23
On Wednesday 22 November 2006 01:43, Dean Michael Berris wrote:
> Hi Guys,
>
> Autolinking for the unit-test target works in Windows in MSVC, but it
> doesn't work in GCC 4.1 -- is this expected behavior?
If by "autolinking" you mean the mechanism of linking to external libraries by
means of including their headers, then yes, this feature is not present on
gcc.
> If so, how do I make my rules like:
>
> unit-test my_test : my_test.cpp ;
>
> Build and execute correctly?
I don't know, since you haven't said what you want to link to. If that's
boost.test, then:
using /boost : <path-to-boost-source-tree> ;
unit-test my_test : my_test.cpp /boost//boost_unit_test_framework ;
should work.
- Volodya