ffmpeg在visual studio中怎么用?
我从官网下载ffmpeg windows build,在vs2012中编译不了。总提示链接问题
#include <stdio.h>
#include "stdafx.h"
#pragma comment(lib , "avcodec.lib")
#ifdef __cplusplus
extern "C"
{
#endif
//这里#include 各种ffmpeg的头文件 我偷懒直接写某个函数的定义了
const char *avcodec_license(void);
#ifdef __cplusplus
}
#endif
int main()
{
const char* p = avcodec_license();
if (p)
{
printf("%s\n", p);
}
return 0;
}
错误 1 error LNK2019: 无法解析的外部符号 _avcodec_license,该符号在函数 _main 中被引用 D:\ffmpeg\ffmpeg\test.obj ffmpeg
我是哪里配置的有问题呢?