C++ 在Windows 7上使用cygwin为gcc构建boost-引导错误

C++ 在Windows 7上使用cygwin为gcc构建boost-引导错误,c++,gcc,boost,C++,Gcc,Boost,我下载了boost并正在这样做 admin@US01WKS03044 /cygdrive/c/Users/admin/Downloads/boost_1_49_0 $ ./bootstrap.bat gcc Building Boost.Build engine filent.c:35:21: fatal error: direct.h: No such file or directory # include <direct.h> ^ co

我下载了boost并正在这样做

admin@US01WKS03044 /cygdrive/c/Users/admin/Downloads/boost_1_49_0
$ ./bootstrap.bat gcc
Building Boost.Build engine
filent.c:35:21: fatal error: direct.h: No such file or directory
 # include <direct.h>
                     ^
compilation terminated.
jam.c: In function ‘main’:
jam.c:181:25: error: ‘environ’ undeclared (first use in this function)
     #define use_environ environ
                         ^
jam.c:417:22: note: in expansion of macro ‘use_environ’
         var_defines( use_environ, 1 );
                      ^
jam.c:181:25: note: each undeclared identifier is reported only once for each function it appears in
     #define use_environ environ
                         ^
jam.c:417:22: note: in expansion of macro ‘use_environ’
         var_defines( use_environ, 1 );
                      ^
jam.c: In function ‘executable_path’:
jam.c:628:18: warning: comparison between pointer and integer
     if (argv0[0] == "/")
                  ^
pathunix.c:276:19: fatal error: tchar.h: No such file or directory
 #include <tchar.h>
                   ^
compilation terminated.
builtins.c:39:0: warning: "WIFEXITED" redefined
 # define WIFEXITED(w)  (((w) & 0XFFFFFF00) == 0)
 ^
In file included from /usr/include/cygwin/stdlib.h:14:0,
                 from /usr/include/stdlib.h:25,
                 from jam.h:89,
                 from builtins.c:7:
/usr/include/cygwin/wait.h:34:0: note: this is the location of the previous definition
 #define WIFEXITED(w) ((__wait_status_to_int(w) & 0xff) == 0)
 ^
builtins.c:40:0: warning: "WEXITSTATUS" redefined
 # define WEXITSTATUS(w)(w)
 ^
In file included from /usr/include/cygwin/stdlib.h:14:0,
                 from /usr/include/stdlib.h:25,
                 from jam.h:89,
                 from builtins.c:7:
/usr/include/cygwin/wait.h:39:0: note: this is the location of the previous definition
 #define WEXITSTATUS(w) ((__wait_status_to_int(w) >> 8) & 0xff)
 ^

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

You can try to obtain a prebuilt binary from

   http://sf.net/project/showfiles.php?group_id=7586&package_id=72941

Also, you can file an issue at http://svn.boost.org
Please attach bootstrap.log in that case.
admin@US01WKS03044/cygdrive/c/Users/admin/Downloads/boost\u 1\u 49\u 0
$./bootstrap.bat gcc
建造助推器,建造引擎
filent.c:35:21:致命错误:direct.h:没有这样的文件或目录
#包括
^
编译终止。
jam.c:在函数“main”中:
jam.c:181:25:错误:“environ”未声明(此函数首次使用)
#定义使用环境
^
jam.c:417:22:注意:在宏“use_environ”的扩展中
变量定义(使用环境,1);
^
jam.c:181:25:注意:每个未声明的标识符对于它出现在其中的每个函数只报告一次
#定义使用环境
^
jam.c:417:22:注意:在宏“use_environ”的扩展中
变量定义(使用环境,1);
^
jam.c:在函数“可执行路径”中:
jam.c:628:18:警告:指针和整数之间的比较
如果(argv0[0]=“/”)
^
pathunix.c:276:19:致命错误:tchar.h:没有这样的文件或目录
#包括
^
编译终止。
builtins.c:39:0:警告:“妻子退出”重新定义
#定义WIFEXITED(w)((w)和0XFFFFFF00)=0)
^
在/usr/include/cygwin/stdlib.h:14:0中包含的文件中,
from/usr/include/stdlib.h:25,
从jam.h:89,
来自内置。c:7:
/usr/include/cygwin/wait.h:34:0:注意:这是前面定义的位置
#定义WIFEXITED(w)((等待状态到int(w)和0xff)=0)
^
builtins.c:40:0:警告:“WEXITSTATUS”已重新定义
#定义WEXIT状态(w)(w)
^
在/usr/include/cygwin/stdlib.h:14:0中包含的文件中,
from/usr/include/stdlib.h:25,
从jam.h:89,
来自内置。c:7:
/usr/include/cygwin/wait.h:39:0:注意:这是前面定义的位置
#定义WEXITSTATUS(w)((等待状态到int(w)>>8)和0xff)
^
无法生成增压。生成引擎。
请查阅bootstrap.log了解更多诊断信息。
您可以尝试从中获取预构建的二进制文件
http://sf.net/project/showfiles.php?group_id=7586&package_id=72941
此外,您还可以在http://svn.boost.org
在这种情况下,请附加bootstrap.log。

关于为什么会出现此错误,有什么建议吗?

文件
bootstrap.bat
用于从Windows命令提示符构建Boost,以创建Boost的本机Windows版本。如果您想从Cygwin shell构建Cygwin版本的Boost,您应该遵循以下步骤

或者正如Boost页面顶部的信息所说:

给Cygwin和MinGW用户的提示

如果计划从Windows命令提示符下使用工具,则处于 对的地方。如果您计划从Cygwin bash shell构建,那么实际上 在POSIX平台上运行,并应遵循 .


文件
bootstrap.bat
用于从Windows命令提示符构建Boost,以创建Boost的本机Windows版本。如果您想从Cygwin shell构建Cygwin版本的Boost,您应该遵循以下步骤

或者正如Boost页面顶部的信息所说:

给Cygwin和MinGW用户的提示

如果计划从Windows命令提示符下使用工具,则处于 对的地方。如果您计划从Cygwin bash shell构建,那么实际上 在POSIX平台上运行,并应遵循 .


文件
bootstrap.bat
用于从Windows命令提示符构建Boost,以创建Boost的本机Windows版本。如果您想从Cygwin shell构建Cygwin版本的Boost,您应该遵循以下步骤

或者正如Boost页面顶部的信息所说:

给Cygwin和MinGW用户的提示

如果计划从Windows命令提示符下使用工具,则处于 对的地方。如果您计划从Cygwin bash shell构建,那么实际上 在POSIX平台上运行,并应遵循 .


文件
bootstrap.bat
用于从Windows命令提示符构建Boost,以创建Boost的本机Windows版本。如果您想从Cygwin shell构建Cygwin版本的Boost,您应该遵循以下步骤

或者正如Boost页面顶部的信息所说:

给Cygwin和MinGW用户的提示

如果计划从Windows命令提示符下使用工具,则处于 对的地方。如果您计划从Cygwin bash shell构建,那么实际上 在POSIX平台上运行,并应遵循 .