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

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