首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

运用cygwin编译git v1.8.0源码报错

2013-03-04 
使用cygwin编译git v1.8.0源码报错各位大侠,我在cygwin中使用make编译下载下来的git源码。发现如下错误。还

使用cygwin编译git v1.8.0源码报错
各位大侠,
    我在cygwin中使用make编译下载下来的git源码。
    发现如下错误。还请帮忙有什么解决方案。谢谢哈。


    CC compat/cygwin.o
In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winnt.h:16:0,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/windef.h:139,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/windows.h:69,
                 from compat/win32.h:6,
                 from compat/cygwin.c:3:
/usr/include/ctype.h:8:5: 错误:expected ‘)’ before ‘__c’
/usr/include/ctype.h:8:5: 错误:expected expression before ‘]’ token
/usr/include/ctype.h:8:5: 错误:expected ‘)’ before ‘!=’ token
/usr/include/ctype.h:9:5: 错误:expected ‘)’ before ‘__c’
/usr/include/ctype.h:9:5: 错误:expected expression before ‘]’ token
/usr/include/ctype.h:9:5: 错误:expected ‘)’ before ‘!=’ token
/usr/include/ctype.h:11:5: 错误:expected ‘)’ before ‘__c’
/usr/include/ctype.h:11:5: 错误:expected expression before ‘]’ token
/usr/include/ctype.h:11:5: 错误:expected ‘)’ before ‘!=’ token
/usr/include/ctype.h:13:5: 错误:expected declaration specifiers or ‘...’ before numeric constant
/usr/include/ctype.h:13:5: 错误:与‘sane_iscase’类型冲突
compat/../git-compat-util.h:541:19: 附注:‘sane_iscase’的上一个定义在此
/usr/include/ctype.h:16:5: 错误:expected ‘)’ before ‘__c’
/usr/include/ctype.h:16:5: 错误:expected expression before ‘]’ token
/usr/include/ctype.h:16:5: 错误:expected ‘)’ before ‘!=’ token
/usr/include/ctype.h:17:5: 错误:expected declaration specifiers or ‘...’ before numeric constant
/usr/include/ctype.h:19:5: 错误:expected declaration specifiers or ‘...’ before ‘(’ token
/usr/include/ctype.h:19:5: 错误:expected declaration specifiers or ‘...’ before numeric constant
/usr/include/ctype.h:20:5: 错误:expected declaration specifiers or ‘...’ before ‘(’ token
/usr/include/ctype.h:20:5: 错误:expected declaration specifiers or ‘...’ before numeric constant
/usr/include/ctype.h:27:5: 错误:expected identifier or ‘(’ before ‘int’
/usr/include/ctype.h:27:5: 错误:expected ‘)’ before ‘&’ token
/usr/include/ctype.h:27:5: 错误:expected ‘)’ before ‘==’ token
Makefile:2376: recipe for target `compat/cygwin.o' failed
make: *** [compat/cygwin.o] Error 1


[解决办法]
cygwin升级到最新,下载git 1.8.1 源码编译通过。

热点排行