登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Code@Pig Home

喜欢背着一袋Code傻笑的Pig .. 忧美.欢笑.记忆.忘却 .之. 角落

 
 
 

日志

 
 

[luabind] lua 5.1.3 编译 luabind 的问题[转]  

2008-08-16 11:59:37|  分类: lang_lua |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

会出现类似错误:
c:\temp\luabind\src\ref.cpp(95) : error C2062: type 'void' unexpected
c:\temp\luabind\src\ref.cpp(96) : error C2143: syntax error : missing ';' before '{'
c:\temp\luabind\src\ref.cpp(96) : error C2447: '{' : missing function header (old-style formal list?)
c:\temp\luabind\src\ref.cpp(113) : error C2062: type 'int' unexpected
c:\temp\luabind\src\ref.cpp(114) : error C2143: syntax error : missing ';' before '{'
c:\temp\luabind\src\ref.cpp(114) : error C2447: '{' : missing function header (old-style formal list?)
c:\temp\luabind\src\ref.cpp(153) : error C2589: '(' : illegal token on right side of '::'
c:\temp\luabind\src\ref.cpp(153) : error C2059: syntax error : '::'
c:\temp\luabind\src\ref.cpp(157) : error C2589: '(' : illegal token on right side of '::'

需要打开luaconf.h,找到322行:
[luabind] lua 5.1.3 编译 luabind 的问题[转] - kasicass - Code@Pig Home#undef LUA_COMPAT_GETN
替换成:
[luabind] lua 5.1.3 编译 luabind 的问题[转] - kasicass - Code@Pig Home#define LUA_COMPAT_GETN
即可解决。

另外需要注意的是,编译时字符集选择不要选择Unicode,选择多字符集貌似是不错的。


-----------------------
世界上总有人与你碰到相同的问题,参考:
http://www.x5dj.com/Blog/00323401/00485748.shtml
  评论这张
 
阅读(1515)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018