读书人

undefined reference to `av_register

发布时间: 2013-01-07 10:02:24 作者: rapoo

undefined reference to `av_register_all'这样的错误怎么解决呀?
在ubuntu下安装了ffmpeg之后,在eclipse里面新建了一个c工程,想测试一下,结果出现了undefined reference to `av_register_all'这样的错误,该怎么解决呢?

#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <stdio.h>

int main(int argc,char*argv[])
{
av_register_all();
return 0;
}
[解决办法]
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
}
[解决办法]
明显是没找到库的原因.


程序没找到*.lib

读书人网 >多媒体

热点推荐