• 全部
  • VC综合技术
  • 互联网技术
  • MFC AppLauncher
  • .NET 技术
  • 界面
  • 进程
  • 算法
  • 硬件/系统
  • 数据库
  • VC++技术资源

使用boost中的问题:没办法编译lib 心里发毛了

lifeforu 北京赛智科技有限公司 项目经理  2005-10-09 04:45:33
使用boost中的问题:没办法编译lib 心里发毛了

下载boost 1.33.0,准备在VC6里用用,link
Linking...
LINK : fatal error LNK1104: cannot open file "libboost_regex-vc6-sgd-1_33.lib"
Error executing link.exe.
按照BOOST官方网站上面的指南需要Configuring the tools
于是又去准备jam,问题就出在这里了
在C:\Programs\boost_1_33_0\tools\build\jam_src位置运行
build.bat msvc
开始顺利,当在md bin.ntx86的时候始终建立在C:\根目录下面,
但应该是建立在当前目录下面,
之后把bjam路径加到系统环境变量中就可以编译其它一些用jam写的make文件了...
我仔细的看了一些文件,应该是在build.jam[#264]这个文件中出了差错,可又不太懂...
尝试改了半天也没成功,已经2个小时了,谁用过的请支个招...
...全文
178 点赞 收藏 8
写回复
8 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
wshcdr 2005-10-11
UP
回复
lifengice0706 2005-10-11
既然是boost,推荐在.net下编译。对stl的支持比vc6好。
回复
zxyjyzxyjy 2005-10-11
没做过,来接分了。
回复
lifeforu 2005-10-11
很奇怪的为什么没有其它人碰上我这样的问题?
我手工给install了
有人要分么,顶了给分啊....
回复
yayaniuniu502 2005-10-09
天书啊,顶一个
回复
lifeforu 2005-10-09
C:\Programs\boost_1_33_0\libs\regex\build>nmake -fvc6.mak

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Building Boost.Regex without ICU / Unicode support:
Hint: set ICU_PATH on the nmake command line to point
to your ICU installation if you have one.
NMAKE : fatal error U1073: don't know how to make '../../../boost/regex/config
llocator.hpp'
Stop.

这是按另一个文档里的编译LIB的方法得出的结果...
回复
lifeforu 2005-10-09
说明一下
参照http://www.stlchina.org/twiki/bin/view.pl/Main/BoostInstall#4_1_Windows中所说的,我在执行前也执行了
X:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.bat
结果依然在C:根目录建立了bin.ntx86目录,且为空...
回复
lifeforu 2005-10-09
这是我执行
C:\Programs\boost_1_33_0\tools\build\jam_src>build msvc
的结果
Setting environment for using Microsoft Visual C++ tools.
###
### Using 'msvc' toolset.
###

C:\Programs\boost_1_33_0\tools\build\jam_src>rd /S /Q bootstrap

C:\Programs\boost_1_33_0\tools\build\jam_src>md bootstrap

C:\Programs\boost_1_33_0\tools\build\jam_src>cl /nologo /GZ /Zi /MLd -DNT -DYYDEBUG kernel32.lib advapi32.lib /Febootstrap\jam0 command.c compile.c execnt.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c
command.c
compile.c
execnt.c
execunix.c
execvms.c
expand.c
filent.c
fileos2.c
fileunix.c
filevms.c
glob.c
hash.c
hdrmacro.c
headers.c
jam.c
jambase.c
jamgram.c
lists.c
make.c
make1.c
Generating Code...
Compiling...
newstr.c
option.c
parse.c
pathunix.c
pathvms.c
regexp.c
rules.c
scan.c
search.c
subst.c
timestamp.c
variable.c
modules.c
strings.c
filesys.c
builtins.c
pwd.c
class.c
w32_getreg.c
native.c
Generating Code...
Compiling...
set.c
path.c
regex.c
property-set.c
sequence.c
order.c
Generating Code...

C:\Programs\boost_1_33_0\tools\build\jam_src>.\bootstrap\jam0 -f build.jam --toolset=msvc "--toolset-root=D:\Program Files\Microsoft Visual Studio\VC98\ " clean
###
### OSPLAT-WWWWWWWWW; EXIT ### //这一行是我加上去观察的
...found 1 target...
...updating 1 target...
...updated 1 target...

C:\Programs\boost_1_33_0\tools\build\jam_src>.\bootstrap\jam0 -f build.jam --toolset=msvc "--toolset-root=D:\Program Files\Microsoft Visual Studio\VC98\ "
###
### OSPLAT-WWWWWWWWW; EXIT ### //这一行是我加上去观察的
...found 44 targets...
...updating 2 targets...
[MKDIR] bin.ntx86
[COMPILE] bin.ntx86\bjam.exe
command.c
fatal error C1083: Cannot open source file: 'command.c': No such file or directory
compile.c
fatal error C1083: Cannot open source file: 'compile.c': No such file or directory
expand.c
fatal error C1083: Cannot open source file: 'expand.c': No such file or directory
glob.c
fatal error C1083: Cannot open source file: 'glob.c': No such file or directory
hash.c
fatal error C1083: Cannot open source file: 'hash.c': No such file or directory
hcache.c
fatal error C1083: Cannot open source file: 'hcache.c': No such file or directory
headers.c
fatal error C1083: Cannot open source file: 'headers.c': No such file or directory
hdrmacro.c
fatal error C1083: Cannot open source file: 'hdrmacro.c': No such file or directory
jam.c
fatal error C1083: Cannot open source file: 'jam.c': No such file or directory
jambase.c
fatal error C1083: Cannot open source file: 'jambase.c': No such file or directory
jamgram.c
fatal error C1083: Cannot open source file: 'jamgram.c': No such file or directory
lists.c
fatal error C1083: Cannot open source file: 'lists.c': No such file or directory
make.c
fatal error C1083: Cannot open source file: 'make.c': No such file or directory
make1.c
fatal error C1083: Cannot open source file: 'make1.c': No such file or directory
newstr.c
fatal error C1083: Cannot open source file: 'newstr.c': No such file or directory
option.c
fatal error C1083: Cannot open source file: 'option.c': No such file or directory
parse.c
fatal error C1083: Cannot open source file: 'parse.c': No such file or directory
regexp.c
fatal error C1083: Cannot open source file: 'regexp.c': No such file or directory
rules.c
fatal error C1083: Cannot open source file: 'rules.c': No such file or directory
scan.c
fatal error C1083: Cannot open source file: 'scan.c': No such file or directory
Generating Code...
Compiling...
search.c
fatal error C1083: Cannot open source file: 'search.c': No such file or directory
subst.c
fatal error C1083: Cannot open source file: 'subst.c': No such file or directory
timestamp.c
fatal error C1083: Cannot open source file: 'timestamp.c': No such file or directory
variable.c
fatal error C1083: Cannot open source file: 'variable.c': No such file or directory
modules.c
fatal error C1083: Cannot open source file: 'modules.c': No such file or directory
strings.c
fatal error C1083: Cannot open source file: 'strings.c': No such file or directory
filesys.c
fatal error C1083: Cannot open source file: 'filesys.c': No such file or directory
builtins.c
fatal error C1083: Cannot open source file: 'builtins.c': No such file or directory
pwd.c
fatal error C1083: Cannot open source file: 'pwd.c': No such file or directory
class.c
fatal error C1083: Cannot open source file: 'class.c': No such file or directory
native.c
fatal error C1083: Cannot open source file: 'native.c': No such file or directory
set.c
fatal error C1083: Cannot open source file: 'modules/set.c': No such file or directory
path.c
fatal error C1083: Cannot open source file: 'modules/path.c': No such file or directory
regex.c
fatal error C1083: Cannot open source file: 'modules/regex.c': No such file or directory
property-set.c
fatal error C1083: Cannot open source file: 'modules/property-set.c': No such file or directory
sequence.c
fatal error C1083: Cannot open source file: 'modules/sequence.c': No such file or directory
order.c
fatal error C1083: Cannot open source file: 'modules/order.c': No such file or directory
execnt.c
fatal error C1083: Cannot open source file: 'execnt.c': No such file or directory
filent.c
fatal error C1083: Cannot open source file: 'filent.c': No such file or directory
pathunix.c
fatal error C1083: Cannot open source file: 'pathunix.c': No such file or directory
Generating Code...
Compiling...
w32_getreg.c
fatal error C1083: Cannot open source file: 'w32_getreg.c': No such file or directory
Generating Code...

"cl" /Febin.ntx86\bjam.exe -DNDEBUG -DOPT_HEADER_CACHE_EXT -DOPT_GRAPH_DEBUG_EXT -DOPT_SEMAPHORE -DOPT_FIX_TARGET_VARIABLES_EXT -DOPT_IMPROVED_PATIENCE_EXT -DNT -DYYSTACKSIZE=5000 /nologo /ML /O2 /Ob2 /Gy /GF /GA /GB "kernel32.lib" "advapi32.lib" command.c compile.c expand.c glob.c hash.c hcache.c headers.c hdrmacro.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c execnt.c filent.c pathunix.c w32_getreg.c

...failed [COMPILE] bin.ntx86\bjam.exe...
...failed updating 1 target...
...updated 1 target...
回复
发帖
VC/MFC
创建于2007-09-28

1.5w+

社区成员

VC/MFC相关问题讨论
申请成为版主
帖子事件
创建了帖子
2005-10-09 04:45
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……