|
Boost-Build : |
Subject: Re: [Boost-build] Include Boost
From: ²ÜÒ»Ãù (joseph.yeeming.cho_at_[hidden])
Date: 2013-05-01 21:11:16
If you do not specify the include path for your compiler, you can try to use #include "XXX" instead of #include <XXX>
·¢×ÔÎÒµÄ iPhone
ÔÚ 2013-5-2£¬3:21£¬Michael Boergert <mjboerge_at_[hidden]> дµÀ£º
>
> From: Boost-build [boost-build-bounces_at_[hidden]] on behalf of ²ÜÒ»Ãù [joseph.yeeming.cho_at_[hidden]]
> Sent: Wednesday, May 01, 2013 6:36 AM
> To: Boost.Build developer's and user's list
> Subject: Re: [Boost-build] Include Boost
>
> Maybe you can try to specify the include path. if you use Linux and g++ compiler you could use -I /usr/local/include and if you program need static lib, you should also use -L /usr/local/lib to specify the lib path and -l boost_XXX to include the static lib you need
>
> ·¢×ÔÎÒµÄ iPhone
>
> ÔÚ 2013-5-1£¬5:12£¬"Michael Boergert" <mjboerge_at_[hidden]> дµÀ£º
>
>> I'm trying to get a C++ program to include Boost, and I've tried such statements as
>> # include <boost> or
>> #include <boost/config.hpp> and so on, and also
>> using namespace boost;
>> But all of them give an error message saying something to the effect of:
>>
>> Cannot open include file: 'boost': No such file or directory (or say that the namespace doesn't exist if I try that way. Could anyone please give me some help with this.
>> _______________________________________________
>> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>> Thank you for the three who responded. I am actually using Windows XP and Microsoft Visual Studio 2008. I tried saying include <D/boost/boost_1_50/boost> but it still said there was no such path or directory.
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
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