From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2006-11-22 03:49:33
On 11/22/06, Vladimir Prus <ghost_at_[hidden]> wrote:
> 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
Okay, thanks for clearing that up.
> > 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.
Thanks for the tip.
However... When I do the above, I get the following errors:
/boost.jam: No such file or directory
/usr/local/boost/tools/build/v2/build/toolset.jam:27: in toolset.using
rule /boost.init unknown in module toolset.
/usr/local/boost/tools/build/v2/build/project.jam:794: in using
Jamfile.v2:5: in modules.load
/usr/local/boost/tools/build/v2/build/project.jam:312: in load-jamfile
/usr/local/boost/tools/build/v2/build/project.jam:68: in load
/usr/local/boost/tools/build/v2/build/project.jam:170: in project.find
/usr/local/boost/tools/build/v2/build-system.jam:209: in load
/usr/local/boost/tools/build/v2/kernel/modules.jam:261: in import
/usr/local/boost/tools/build/v2/kernel/bootstrap.jam:132: in boost-build
/usr/local/boost/boost-build.jam:10: in module scope
I'm on Linux using GCC 4.1 -- I did a search for boost.jam in
/usr/local/boost but I don't see one.
What am I missing here?
-- Dean Michael C. Berris C++ Software Architect Orange and Bronze Software Labs, Ltd. Co. web: http://software.orangeandbronze.com/ email: dean_at_[hidden] mobile: +63 928 7291459 phone: +63 2 8943415 other: +1 408 4049532 blogs: http://mikhailberis.blogspot.com http://3w-agility.blogspot.com http://cplusplus-soup.blogspot.com
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk