ffmpeg开发中出现的问题(五)

1. 如果要链接c++库, 这样用g++编译程序时, 会提示如下错误:

uint64_t未定义, 而且还是头文件中的函数中使用的参数中的类型, 这个不能轻易修改.h文件

解决:

在程序中添加:

#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif

2.

error: expected ‘)’ before ‘PRId64’

解决:

#if !defined PRId64 || PRI_MACROS_BROKEN
# undef PRId64
# define PRId64 "lld"
#endif


posted @ 2013-10-22 10:52  海滨银枪小霸王  阅读(142)  评论(0编辑  收藏  举报