gpt4 book ai didi

c++ - boost 1.66 安装错误

转载 作者:行者123 更新时间:2023-11-28 04:50:48 25 4
gpt4 key购买 nike

我正在尝试在 Windows 10 上安装 Boost 1.66 和 MinGW 7.2。

我尝试运行 boostrap.bat mingw 以及 C:\Program Files\boost_1_66_0\tools\build\src\engine 中的 bootstrap gcc

结果是:

C:\Program Files\boost_1_66_0\tools\build>bootstrap gcc
Bootstrapping the build engine

Failed to bootstrap the build engine
Please consult bootstrap.log for furter diagnostics.

bootstrap.log 文件如下所示:

###
### Using 'gcc' toolset.
###

C:\Program Files\boost_1_66_0\tools\build\src\engine>if exist bootstrap rd /S /Q bootstrap

C:\Program Files\boost_1_66_0\tools\build\src\engine>md bootstrap

C:\Program Files\boost_1_66_0\tools\build\src\engine>gcc -DNT -o bootstrap\jam0.exe command.c compile.c constants.c debug.c execcmd.c execnt.c filent.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathnt.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c class.c cwd.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

C:\Program Files\boost_1_66_0\tools\build\src\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= " clean
...found 1 target...
...updating 1 target...
...updated 1 target...

C:\Program Files\boost_1_66_0\tools\build\src\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= "
...found 161 targets...
...updating 3 targets...
[MKDIR] bin.ntx86_64
[COMPILE] bin.ntx86_64\b2.exe
gcc: error: command.c: No such file or directory
gcc: error: compile.c: No such file or directory
gcc: error: constants.c: No such file or directory
gcc: error: debug.c: No such file or directory
gcc: error: debugger.c: No such file or directory
gcc: error: execcmd.c: No such file or directory
gcc: error: frames.c: No such file or directory
gcc: error: function.c: No such file or directory
gcc: error: glob.c: No such file or directory
gcc: error: hash.c: No such file or directory
gcc: error: hcache.c: No such file or directory
gcc: error: headers.c: No such file or directory
gcc: error: hdrmacro.c: No such file or directory
gcc: error: jam.c: No such file or directory
gcc: error: jambase.c: No such file or directory
gcc: error: jamgram.c: No such file or directory
gcc: error: lists.c: No such file or directory
gcc: error: make.c: No such file or directory
gcc: error: make1.c: No such file or directory
gcc: error: mem.c: No such file or directory
gcc: error: object.c: No such file or directory
gcc: error: option.c: No such file or directory
gcc: error: output.c: No such file or directory
gcc: error: parse.c: No such file or directory
gcc: error: pathsys.c: No such file or directory
gcc: error: regexp.c: No such file or directory
gcc: error: rules.c: No such file or directory
gcc: error: scan.c: No such file or directory
gcc: error: search.c: No such file or directory
gcc: error: subst.c: No such file or directory
gcc: error: w32_getreg.c: No such file or directory
gcc: error: timestamp.c: No such file or directory
gcc: error: variable.c: No such file or directory
gcc: error: modules.c: No such file or directory
gcc: error: strings.c: No such file or directory
gcc: error: filesys.c: No such file or directory
gcc: error: builtins.c: No such file or directory
gcc: error: class.c: No such file or directory
gcc: error: cwd.c: No such file or directory
gcc: error: native.c: No such file or directory
gcc: error: md5.c: No such file or directory
gcc: error: modules\set.c: No such file or directory
gcc: error: modules\path.c: No such file or directory
gcc: error: modules\regex.c: No such file or directory
gcc: error: modules\property-set.c: No such file or directory
gcc: error: modules\sequence.c: No such file or directory
gcc: error: modules\order.c: No such file or directory
gcc: error: execnt.c: No such file or directory
gcc: error: filent.c: No such file or directory
gcc: error: pathnt.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.

"gcc" -o bin.ntx86_64\b2.exe "-DNDEBUG" "-DOPT_HEADER_CACHE_EXT" "-DOPT_GRAPH_DEBUG_EXT" "-DOPT_SEMAPHORE" "-DOPT_AT_FILES" "-DOPT_DEBUG_PROFILE" "-DJAM_DEBUGGER" "-DOPT_FIX_TARGET_VARIABLES_EXT" "-DOPT_IMPROVED_PATIENCE_EXT" "-DNT" "-DYYSTACKSIZE=5000" "-pedantic" "-fno-strict-aliasing" "-s" "-O3" "-Wno-long-long" "command.c" "compile.c" "constants.c" "debug.c" "debugger.c" "execcmd.c" "frames.c" "function.c" "glob.c" "hash.c" "hcache.c" "headers.c" "hdrmacro.c" "jam.c" "jambase.c" "jamgram.c" "lists.c" "make.c" "make1.c" "mem.c" "object.c" "option.c" "output.c" "parse.c" "pathsys.c" "regexp.c" "rules.c" "scan.c" "search.c" "subst.c" "w32_getreg.c" "timestamp.c" "variable.c" "modules.c" "strings.c" "filesys.c" "builtins.c" "class.c" "cwd.c" "native.c" "md5.c" "modules\set.c" "modules\path.c" "modules\regex.c" "modules\property-set.c" "modules\sequence.c" "modules\order.c" "execnt.c" "filent.c" "pathnt.c"

...failed [COMPILE] bin.ntx86_64\b2.exe...
...skipped bjam.exe for lack of b2.exe...
...failed updating 1 target...
...skipped 1 target...
...updated 1 target...

C:\Program Files\boost_1_66_0\tools\build\src\engine>exit /b 1

我可以在安装方面得到一些帮助吗?

最佳答案

看起来您是从错误的目录构建的:~\boost_1_66_0\tools\build 而不是 ~\boost_1_66_0

答案here在最后描述了如何使用 MinGw 构建 boost

关于c++ - boost 1.66 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48257508/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com