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

相关文章:

  • 2021-06-03
  • 2021-08-12
  • 2022-12-23
  • 2022-01-22
  • 2021-04-01
  • 2021-08-12
  • 2022-12-23
  • 2022-02-05
猜你喜欢
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-07-10
  • 2022-12-23
相关资源
相似解决方案