编译时报错如下:
/usr/include/libavutil/common.h:168: 错误:'UINT64_C' was not declared in this scope
解决:
在common.h里面添加#ifndef UINT64_C
#define UINT64_C(value)__CONCAT(value,ULL)
#endif
视图如下:

本文提供了解决编译错误的方法,该错误出现在使用UINT64_C宏时,宏未在当前作用域声明。通过在common.h文件中添加特定代码段,可以解决这一问题。
编译时报错如下:
/usr/include/libavutil/common.h:168: 错误:'UINT64_C' was not declared in this scope
解决:
在common.h里面添加#ifndef UINT64_C
#define UINT64_C(value)__CONCAT(value,ULL)
#endif
视图如下:


被折叠的 条评论
为什么被折叠?