使用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个小时了,谁用过的请支个招...

解决方案 »

  1.   

    这是我执行
    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...
      

  2.   

    说明一下
    参照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目录,且为空...
      

  3.   

    C:\Programs\boost_1_33_0\libs\regex\build>nmake -fvc6.makMicrosoft (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的方法得出的结果...
      

  4.   

    很奇怪的为什么没有其它人碰上我这样的问题?
    我手工给install了
    有人要分么,顶了给分啊....
      

  5.   

    既然是boost,推荐在.net下编译。对stl的支持比vc6好。