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@nmsu.edu> 写道:

 


From: Boost-build [boost-build-bounces@lists.boost.org] on behalf of 曹一鸣 [joseph.yeeming.cho@gmail.com]
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@nmsu.edu> 写道:

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