一个boost库编译的问题

jypp 2006-10-09 06:39:37
我刚刚接触boost库,我按照安装说明进行编译安装,在说明上有这么一段话“Note that some of the libraries also include non Boost.Build makefiles and/or project files. But all include the needed files for building with Boost.Build.”最后编译安装结束时显示如下

...failed updating 1344 targets...
...skipped 470 targets...
...updated 3783 targets...

这正常吗?能知道是哪些失败和跳过了吗?那些没有更新以及跳过的是不是不用编译直接可以用呀?
...全文
590 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
CodeSpirit 2006-10-22
  • 打赏
  • 举报
回复
bjam.exe "-sTOOLS=vc-7_1" "--stagedir=D:\The_Last_Version_of\boost" "-sVC71_ROOT=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7" "-sBUILD=debug release <runtime-link>static/dynamic <threading>multi" stage

试试这个命令
iambic 2006-10-19
  • 打赏
  • 举报
回复
回楼上,我编译的时候是用bjam命令,使用 bjam -sTOOLS=msvc install 编译出来的是vc6的版本,其间确实有溢出问题。使用 bjam -sTOOLS=vc-7_1 install编译出来的就是vc7.1的版本。因为我装的就是vc7.1,所以没理会msvc的那个,只是试下而已。
rickerliang 2006-10-19
  • 打赏
  • 举报
回复
Boost.Build's vc-7_1 toolset supports the Microsoft Visual C++ .NET tools. This toolset is an extention to the msvc toolset and is useful for when you need to have access to several versions of Visual C++.

VC71_ROOT
Path to installation of VC7.1.
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
If MSVC Dir is set in the environment, the toolset will assume VCVARS32.BAT has already been called, and will ignore this variable.

roger_77 2006-10-19
  • 打赏
  • 举报
回复
VC++7.1编译boost最简单的方法是使用:
开始->vs.net2003->"Visual Studio .NET 工具"->"Visual Studio .NET 2003 命令提示"
在此环境下执行编译.不需要添加什么系统环境变量

可以参见:
在VC++.net平台下编译使用boost库的简捷方法
http://blog.csdn.net/roger_77/archive/2006/02/17/600955.aspx
rickerliang 2006-10-19
  • 打赏
  • 举报
回复
也就是说要添加vc-7_1这个环境变量?
iambic 2006-10-18
  • 打赏
  • 举报
回复
回楼上,使用vc7.1编译msvc版本(VC6)的库会有问题,编译vc71版本的没问题。
rickerliang 2006-10-16
  • 打赏
  • 举报
回复
我编译boost的时候,cl.exe(vc71)会出现缓冲区溢出现象,不知道你们是否会有同样现象?
roger_77 2006-10-16
  • 打赏
  • 举报
回复
其实boost中的很多类库是不需要编译就可以直接使用的。

只有少部分需要编译,主要是跟平台相关的部分类库,如线程库thread,日期时间库data_time,等等。

对于编译失败而跳过的库,如果你的程序中并不需要用到它,对你使用boost的其它类库没任何影响。

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧