晚上用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."

posted on 2015-09-12 21:51  你不知道的浪漫  阅读(271)  评论(0编辑  收藏  举报