Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-07-13 03:56:53


On Wednesday 12 July 2006 17:24, Artem Alimarine wrote:
> Hi all,
>
> I have thried this with the RC-1.34.0 and the CVS head. The toolset is
> vc-8_0 run in the 32 bit environment on Windows XP x64. Here is the
> Jamfile.v2:
> ################################
> project hello
> #: requirements <use>$(BOOST_ROOT)//date_time/<link>static
>
> : requirements <use>$(BOOST_ROOT)//date_time

This gets you includes for Boost.Date_time, but it does not link to the
library. Is that what you want? You can read up description of builtin
features at:

   http://boost.org/boost-build2/doc/html/bbv2/advanced/builtins/features.html

>
> ;
>
> exe hello
>
> : hello.cpp
>
> subdir1/foo.cpp
> ;

> msvc.compile.c++ bin\msvc-8.0\debug\link-static\hello.obj
> hello.cpp
> msvc.compile.c++ bin\msvc-8.0\debug\link-static\foo.obj
> foo.cpp
> msvc.link bin\msvc-8.0\debug\link-static\hello.exe
> LINK : fatal error LNK1104: cannot open file
> 'libboost_date_time-vc80-mt-gd-1_34
> .lib'
> ...updated 3 targets...
>
>
> Actually, the file libboost_date_time-vc80-mt-gd-1_34.lib is created in
> the bin.v2 directory.
> What an I doing wrong?

You're should link to the library using <library> feature, and you probably
should disable auto-linking using the <define>BOOST_ALL_NO_LIB requirement.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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