与$ C $个cblocks Windows安装提振 [英] install boost on windows with codeblocks

查看:127
本文介绍了与$ C $个cblocks Windows安装提振的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照本指南在Windows XP上安装运行加速$ C $的cblock:的 HTTP://wiki.$c$cblocks.org/index.php标题= BoostWindowsQuickRef 。我已经下载加速和BoostJam和版本

I'm following this guide to install Boost on Windows XP running CodeBlocks: http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef. I have downloaded Boost and BoostJam and the versions are

升压:1.52.0
BoostJam:3.1.18.1-ntx86

Boost: 1.52.0 BoostJam: 3.1.18.1-ntx86

我想建立加速(指南中的建设助推一节),所以我成功地设置PATH到c:\\升压果酱

I am trying to build Boost (the section "Build Boost" in the guide), so I have set the PATH succesfully to c:\boost-jam

现在我想运行升压果酱,和我写的:的bjam --toolset = GCC - preFIX = C:\\ Program Files文件\\ $ C $的cblock安装

Now I want to run boost-jam, and I write: bjam --toolset=gcc "--prefix=c:\program files\codeblocks" install

这是我得到一个错误。命令提示符告诉我:警告:Boost.Build引擎和核心版本不匹配。在引导我下面过时?

This is where I get an error. The command prompt tells me: "warning: mismatched versions of Boost.Build engine and core". Is the guide I am following outdated?

推荐答案

我面临同样的问题,当我试图推动建立从源头。最好的办法是从源代码编译的bjam(它与提升)。首先确保你有你的道路MinGW的海湾合作​​委员会,然后,在命令行上,导航到

I faced the same problem when I tried to setup boost from source. The best approach is to build bjam from source (it comes with boost). First make sure you have mingw gcc on your path, and then, on the command line, navigate to

<提振根> /工具/编译/ V2 /发动机

< boost-root >/tools/build/v2/engine

使用&LT;促进根方式&gt; 是您在其中提取的升压源$ C ​​$ C文件夹结果
从这里,引用海湾合作委员会的build.bat

With <boost-root> being the folder into which you extracted the boost source code.
From here, invoke build.bat gcc.

这将建立一个可执行文件( b2.exe 和/或 bjam.exe )。将其复制到&LT;促进根方式&gt; 并与您需要的选项调用它

This will build an executable (b2.exe and/or bjam.exe). Copy it to <boost-root> and invoke it with the options you need.

这篇关于与$ C $个cblocks Windows安装提振的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆