当前位置: 代码迷 >> 多媒体/流媒体开发 >> undefined reference to `av_register_all'这样的异常如何解决呀
  详细解决方案

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

热度:4817   发布时间:2013-02-26 00:00:00.0
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
  相关解决方案