ffmpeg: 'UINT64_C' was not declared in this scope
来源:互联网 发布:淘宝200多的智能机 编辑:程序博客网 时间:2024/05/19 14:52
转自: http://blog.csdn.net/beitiandijun/article/details/19156175
ffmpeg 是使用C语言写的,默认使用C编译,如果要在C++中调用ffmpeg,则有可能出现错误:
ffmpeg: 'UINT64_C' was not declared in this scope
解决办法三种:
一种是:
extern "C"{
#ifdef __cplusplus
#define __STDC_CONSTANT_MACROS
#ifdef _STDINT_H
#undef _STDINT_H
#endif
# include <stdint.h>
#endif
}
第二种是在ffmpeg的common.h文件中添加语句:
/usr/local/include/libavutil/common.h中添加:
#ifndef UINT64_C
#define UINT64_C(value)__CONCAT(value,ULL)
#endif
http://code.google.com/p/ffmpegsource/issues/detail?id=11
第三种:
在该头文件加以下语句就行了。
#ifndef INT64_C
#define INT64_C
#define UINT64_C
#endif
这个要放在
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/avutil.h>
}
0 0
- ffmpeg: ‘UINT64_C’ was not declared in this scope
- ffmpeg: ‘UINT64_C’ was not declared in this scope
- ffmpeg: ‘UINT64_C’ was not declared in this scope
- ffmpeg: ‘UINT64_C’ was not declared in this scope
- ffmpeg: 'UINT64_C' was not declared in this scope
- ffmpeg中遇到UINT64_C’ was not declared in this scope
- ffmpeg中遇到UINT64_C’ was not declared in this scope
- ffmpeg: 'UINT64_C' was not declared in this scope
- ffmpeg中遇到UINT64_C’ was not declared in this scope
- ffmpeg中遇到UINT64_C’ was not declared in this scope
- 'UINT64_C' was not declared in this scope
- ‘UINT64_C’ was not declared in this scope
- FFmpeg:'UINT64_C' was not declared in ths scope
- linux 编译ffmpeg 出错:error: 'UINT64_C' was not declared in this scope
- linux 编译ffmpeg 出错:error: 'UINT64_C' was not declared in this scope
- android NDK编译ffmpeg错误 'UINT64_C' was not declared in this scope的解决
- error: 'UINT64_C' was not declared in this scope
- linux下进行视频解码时调用ffmpeg的动态库出现error: ‘UINT64_C’ was not declared in this scope
- 20161028校内训练
- 0-1背包
- matlab7在win7上运行报错
- 词法分析
- POJ1022 四维魔方(转载他人)
- ffmpeg: 'UINT64_C' was not declared in this scope
- hduoj1171
- 【ARM-Linux开发】Linux环境下使用eclipse开发C++动态链接库程序
- 所有学习资料
- Android Studio --“Cannot resolve symbol” 解决办法
- 【ARM-Linux开发】linux下Eclipse进行C编程时动态链接库的生成和使用
- HTML 2 标签
- APP 签名 与 APK 优化
- 学习历程(四)微信天气预报小demo