在Windows 7上使用cygwin建立gcc提升 - bootstrap错误 [英] build boost for gcc using cygwin on Windows 7 - bootstrap error

查看:615
本文介绍了在Windows 7上使用cygwin建立gcc提升 - bootstrap错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已下载boost并执行此操作

I downloaded boost and am doing this

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.

有关为什么会收到此错误的任何建议?

Any suggestions on why I might be getting this error ?

推荐答案

文件 bootstrap.bat 用于从Windows命令提示符构建Boost以创建本机Windows版本的Boost。如果你想从Cygwin shell构建一个Cygwin版本的Boost,你应该遵循在Unix类型系统上构建Boost的说明

The file bootstrap.bat is for building Boost from the Windows command prompt in order to create a native Windows version of Boost. If you want to build a Cygwin version of Boost from the Cygwin shell you should follow the instructions for building Boost on Unix-type systems.

或者,此消息位于Boost的 Windows入门页面上显示:

Or as this message at the top of Boost's Getting Started on Windows page says:


向Cygwin和MinGW用户发送的注释

如果计划使用Windows中的工具命令提示符,你在
正确的地方。如果你计划从Cygwin bash shell构建,你实际上是在POSIX平台上运行
,并且应该遵循
开始使用Unix版本

If you plan to use your tools from the Windows command prompt, you're in the right place. If you plan to build from the Cygwin bash shell, you're actually running on a POSIX platform and should follow the instructions for getting started on Unix variants.

这篇关于在Windows 7上使用cygwin建立gcc提升 - bootstrap错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆