Ffmpeg 找不到avcodec符号

Ffmpeg 找不到avcodec符号,ffmpeg,osx-snow-leopard,Ffmpeg,Osx Snow Leopard,我试图在FFMPEG库中构建示例代码 我在项目中添加libavcode.h、libavcode.a,并将标题搜索usr/local/include和库搜索设置为usr/local/lib 当我编译这个示例时,我得到了以下错误。。。(所有这些都与avcodec库相关) { } 你知道我为什么会有这个问题吗 谢谢解决方案是将其添加到标题中,因为我想FFMPEG是用C编写的 extern "C" { #ifndef __STDC_CONSTANT_MACROS #define __STDC_CONST

我试图在FFMPEG库中构建示例代码 我在项目中添加libavcode.h、libavcode.a,并将标题搜索usr/local/include和库搜索设置为usr/local/lib

当我编译这个示例时,我得到了以下错误。。。(所有这些都与avcodec库相关)

{

} 你知道我为什么会有这个问题吗


谢谢

解决方案是将其添加到标题中,因为我想FFMPEG是用C编写的

extern "C"
{
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include "avassert.h"
#include "avutil.h"
#include "intreadwrite.h"
#include "mem.h"
 }
extern“C”
{
#ifndef uu STDC u常量u宏
#定义\uu STDC\u常量\u宏
#恩迪夫
#包括
#包括
#包括“avassert.h”
#包括“avutil.h”
#包括“intreadwrite.h”
#包括“mem.h”
}
extern "C"
{
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include "avassert.h"
#include "avutil.h"
#include "intreadwrite.h"
#include "mem.h"
 }