C++ 什么是 BOOST_ROOT?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9697926/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
what is BOOST_ROOT?
提问by javapowered
I'm trying to build x64 version of http://code.google.com/p/quickfast/That's how build scripts use %BOOST_ROOT%:
我正在尝试构建 x64 版本的http://code.google.com/p/quickfast/这就是构建脚本使用 %BOOST_ROOT% 的方式:
set SETUP_CHECKING=BOOST_ROOT=%BOOST_ROOT%
if not exist "%BOOST_ROOT%\boost" goto setup_is_bad
includes += $(BOOST_ROOT)/include
set RELEASE_PATH=%QUICKFAST_ROOT%\bin;%QUICKFAST_ROOT%\Output\Release;%MPC_ROOT%;%BOOST_ROOT%\lib;
So build script expects following file/folders:
所以构建脚本需要以下文件/文件夹:
%BOOST_ROOT%\boost
$(BOOST_ROOT)/include
%BOOST_ROOT%\lib
I've downloaded/builded boost and there are no lib
or include
folder. That's what my boost
folder contains:
我已经下载/构建了 boost 并且没有lib
orinclude
文件夹。这就是我的boost
文件夹包含的内容:
C:\bin\boost_1_49_0
14.03.2012 11:59 <DIR> .
14.03.2012 11:59 <DIR> ..
13.03.2012 16:17 249?856 b2.exe
13.03.2012 16:18 <DIR> bin.v2
13.03.2012 16:17 249?856 bjam.exe
22.02.2012 18:25 <DIR> boost
30.01.2012 21:30 866 boost-build.jam
30.01.2012 21:30 1?054 boost.css
30.01.2012 21:30 6?308 boost.png
30.01.2012 21:30 18?606 boostcpp.jam
30.01.2012 21:30 2?545 bootstrap.bat
13.03.2012 16:17 2?496 bootstrap.log
30.01.2012 21:30 10?324 bootstrap.sh
22.02.2012 18:05 <DIR> doc
30.01.2012 21:30 794 index.htm
29.01.2012 16:58 5?556 index.html
30.01.2012 21:30 298 INSTALL
29.01.2012 16:58 10?423 Jamroot
22.02.2012 18:06 <DIR> libs
30.01.2012 21:30 1?361 LICENSE_1_0.txt
13.03.2012 16:37 4?781 log.txt
22.02.2012 18:28 <DIR> more
13.03.2012 16:17 76 project-config.jam
30.01.2012 21:30 2?757 rst.css
13.03.2012 16:18 <DIR> stage
22.02.2012 18:24 <DIR> status
22.02.2012 18:28 <DIR> tools
Where can I find x64 boost version that contains lib
include
and boost
folders?
我在哪里可以找到64位提升版本,包含lib
include
和boost
文件夹?
采纳答案by juergen d
Include files are in folder %BOOST_ROOT%\boost
Libraries are in %BOOST_ROOT%\libs
包含文件在文件夹%BOOST_ROOT%\boost
库中%BOOST_ROOT%\libs
Change your build script accordingly.
相应地更改您的构建脚本。
Example:
例子:
%BOOST_ROOT%: c:\bin\boost_1_49_0
Includes: %BOOST_ROOT%\boost
Libs: %BOOST_ROOT%\stage\lib