首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > 多媒体 >

undefined reference to `av_register_all'这样的异常如何解决呀

2012-10-18 
undefined reference to `av_register_all这样的错误怎么解决呀?在ubuntu下安装了ffmpeg之后,在eclipse里

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

热点排行