|
Boost Users : |
From: Stuart Dootson (stuart.dootson_at_[hidden])
Date: 2005-03-14 15:21:27
On Mon, 14 Mar 2005 12:49:34 -0600, Gang Wu <gang.wu_at_[hidden]> wrote:
>
>
>
> Hi,
>
> I am trying to use boost in VS .NET 2003. Could someone give me a simple
> example showing how to make it compiled.
>
>
>
> I have run the install:
>
> bjam "-sTOOLS=gcc" install
>
> I saw it created a folder "c:\boost". But when I , for example,
>
> #include <boost/any.hpp>
>
> in VC++ .NET project. It always complained that "no such file or directory"
> no matter how I adjusted include path in settings
> (Tools->Options->Projects->VC++ Directories).
>
> Thank you for any help.
>
The command you've got will try to build libraries for gcc, not VC++,
and so will fail (as you've got VC++, not gcc!). Use this command
instead
bjam "-sTOOLS=vc-7_1" install
This will build the libraries and copy them to sub-directories under
c:\boost. Use 'Search' in explorer to find the correct directories to
use in Visual Studio.
Stuart Dootson
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net