|
Boost-Build : |
Subject: Re: [Boost-build] [boost-build] how to use boost.use-project?
From: Yujie Wen (yjwen.ty_at_[hidden])
Date: 2009-07-14 05:08:16
Hi, Andrey,
This error is about your c compiler cannot find shared_ptr.hpp. If
you are using boost source code package on a Unix-like system, make
sure the boost sub-directory are copied to /usr/includes. If not so,
you have to tell you c compiler explicitly where to find include files
by changing the Jamroot file line:
exe main : main.cpp ;
to
exe main : main.cpp : <include>/where/boost/placed ;
Yujie
2009/7/14, Andrey Torba <andreytorba_at_[hidden]>:
> I have boost, BOOST_ROOT, BOOST_BUILD_PATH variables. When i compile i
> receive an error:
>
> main.cpp(2) : fatal error C1083: Cannot open include file:
> 'boost/shared_ptr.hpp': No such file or directory
>
> What i do wrong?
>
> Jamroot:
> ========================================================================
> import boost ;
>
> boost.use-project ;
>
> project : build-dir bin ;
>
> exe main : main.cpp ;
> ========================================================================
>
>
> main.cpp:
> ========================================================================
> #include <boost/shared_ptr.hpp>
>
> int main()
> {
> return 0;
> }
> ========================================================================
>
>
> --
> Regards, Andrey
>
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