编译boost的问题!

wpalhm 2008-01-10 09:01:36
我的机器装的是vs2003.
下的boost是boost_1_34_1
我在执行bjam.exe 的时候就会出现这样的问题:

warning: No toolsets are configured.
warning: Configuring default toolset "msvc".
warning: If the default is wrong, you may not be able to build C++ programs.
warning: Use the "--toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html

我的user_config:
# Copyright 2003, 2005 Douglas Gregor
# Copyright 2004 John Maddock
# Copyright 2002, 2003, 2004 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)

# This file is used to configure your Boost.Build installation. Please read
# the user manual to find out where to put it.

# Toolset declarations are most important in this file. They tell Boost.Build
# what compilers are available and where to look for them. The first toolset
# will become "default" one.
# Some important libraries can also be configured.
# Uncomment relevant parts to suite your local configuration and preferences.

import toolset : using ;

# GCC configuration

# Configure gcc (default version)
# using gcc ;

# Configure specific gcc version, giving alternative name to use
# using gcc : 3.2 : g++-3.2 ;


# MSVC configuration

# Configure msvc (default version, searched in standard location
# and PATH).
# using msvc : 7.1 ;

# Borland configuration
# using borland ;


# STLPort configuration

# Configure, specifying location of STLPort headers.
# Libraries must be either not needed, or available to
# the compiler by default
# using stlport : : /usr/include/stlport ;

# Configure, specifying locatioh of both headers and libraries
# using stlport : : /usr/include/stlport /usr/lib ;


# QT configuration

# Configure, assuming QTDIR gives the installation prefix
# using qt ;

# Configure with explicit installation prefix
# using qt : /usr/opt/qt ;


请问我该如何去掉警告啊!?
或者纤细的编译过程!
...全文
135 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
blusherbear 2008-01-11
  • 打赏
  • 举报
回复
boost编译确实很花时间,不过还是可以接受的。
boost文档中有在vs2003下编译boost的详细说明,按照它的步骤做就可以编译成功。
http://www.boost.org/more/getting_started/windows.html
如果嫌麻烦,直接下载安装版的,运行安装程序就能搞定,省得手工编译。
金庆 2008-01-11
  • 打赏
  • 举报
回复
用参数:--toolset=msvc-7.1
taodm 2008-01-10
  • 打赏
  • 举报
回复
能编译出来就行。
wpalhm 2008-01-10
  • 打赏
  • 举报
回复
谢了!
calss_cyl 2008-01-10
  • 打赏
  • 举报
回复
据说编译一下要好几个小时!
怕怕。还是用现成的好。

64,281

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

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