码迷,mamicode.com
首页 > 其他好文 > 详细

MSVC 报错 unable to use inline in declaration get error C2054

时间:2015-09-12 22:20:16      阅读:355      评论:0      收藏:0      [点我收藏+]

标签:

晚上用cmake生成了一份lua-cjson的工程文件,msvc6的

编译时报错

 

后来再stackoverflow找到答案:unable to use inline in declaration get error C2054

解决方法:

Use __inline with MSVC.

inline is a c99 keyword and c99 is not yet (fully) supported with MSVC.

"The inline keyword is available only in C++. The __inline and __forceinline keywords are available in both C and C++. For compatibility with previous versions, _inline is a synonym for __inline."

MSVC 报错 unable to use inline in declaration get error C2054

标签:

原文地址:http://www.cnblogs.com/passedbylove/p/4803679.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!