有人用VC2005编译过secondlife吗?来帮兄弟一把!

Crazy_Abyss 2008-05-11 04:14:14
从官方网站下载了1.19.1.4的源码,按要求安装了需要的库,排除了99 81难,终于把编译错误缩小到只有1个项目了:lscript_compile。但这里出了很多错,似乎跟Cygwin都有些关系,好像是类型定义什么的,我从没接触过Cygwin,哪位DX来指教一二?出错信息如下:

1>------ Build started: Project: lscript_compile, Configuration: Release Win32 ------
1>Compiling...
1>lex_yy.cpp
1>D:\cygwin\usr\include\sys/_types.h(15) : error C2144: syntax error : '__int64' should be preceded by ';'
1>D:\cygwin\usr\include\sys/_types.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\cygwin\usr\include\sys/_types.h(34) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option
1>D:\cygwin\usr\include\sys/_types.h(34) : error C2059: syntax error : '__value'
1>D:\cygwin\usr\include\sys/unistd.h(17) : error C2733: second C linkage of overloaded function '_exit' not allowed
1> D:\cygwin\usr\include\sys/unistd.h(17) : see declaration of '_exit'
1>D:\cygwin\usr\include\sys/unistd.h(53) : error C2146: syntax error : missing ';' before identifier 'fork'
1>D:\cygwin\usr\include\sys/unistd.h(53) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\cygwin\usr\include\sys/unistd.h(53) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\cygwin\usr\include\sys/unistd.h(62) : error C2146: syntax error : missing ';' before identifier 'getegid'
......
1>.\lex_yy.cpp(5570) : warning C4018: '<' : signed/unsigned mismatch
1>.\lex_yy.cpp(5908) : error C2660: 'isatty' : function does not take 1 arguments
1>Build log was saved at "file://d:\Projects\sl1-19-1\linden\indra\lscript\lscript_compile\Release\BuildLog.htm"
1>lscript_compile - 60 error(s), 1 warning(s)

(中间省略了很多,但都是unistd.h类似的错误)
...全文
260 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Crazy_Abyss 2008-07-07
  • 打赏
  • 举报
回复
解决了,在flex命令里加一个参数--nounistd
aceattacker 2008-05-14
  • 打赏
  • 举报
回复
用google搜搜出现错误代码的解决方案或是看看MSDN的解除方案:
如error C4430指的是"缺少类型说明符-假定为int。注意:C++ 不支持默认int"
解决用System.Int32代替int

又如error C2146指的是:
http://technet.microsoft.com/zh-cn/library/9xbcaa9t.aspx
Crazy_Abyss 2008-05-13
  • 打赏
  • 举报
回复
自己顶一下
Crazy_Abyss 2008-05-12
  • 打赏
  • 举报
回复
自己顶一下

8,304

社区成员

发帖
与我相关
我的任务
社区描述
游戏开发相关内容讨论专区
社区管理员
  • 游戏开发
  • 呆呆敲代码的小Y
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧