igrasping / linphone-vs2008

Automatically exported from code.google.com/p/linphone-vs2008
0 stars 0 forks source link

链接出错,请求帮助。 #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
在链接的时候,出现下面这样的错误提示:
mediastreamer2.lib(nowebcam.obj) : error LNK2019: 无法解析的外部符号 
"int __cdecl avcodec_close(struct AVCodecContext *)" 
(?avcodec_close@@YAHPAUAVCodecContext@@@Z),该符号在函数 "struct msgb * 
__cdecl jpeg2yuv(unsigned char *,int,struct MSVideoSize *)" 
(?jpeg2yuv@@YAPAUmsgb@@PAEHPAUMSVideoSize@@@Z) 中被引用

可是我在nowebcam.c里面加入了:
#include "libavcodec/avcodec.h"
#pragma 
comment(lib,"E:/workspace/linephone-vs2008/codecs/ffmpeg-i386/lib/avcodec-52.lib
")

恳请指教。

Original issue reported on code.google.com by northeas...@gmail.com on 10 Nov 2011 at 4:23

GoogleCodeExporter commented 9 years ago
试试
extern "C" {
#include "libavcodec/avcodec.h"
};

Original comment by duanweiw...@gmail.com on 11 Dec 2011 at 3:19

GoogleCodeExporter commented 9 years ago
谢谢,我发现,linphone-vs2008 与freeswitch 
交互时,呼出没问题,呼入出现异常,我更改了,
offeranswer.c 中 match_payloads 
函数中for循环第二句,match=...之前加入if(p2->mine_type == 
NULL){break;}就OK了,具体也不太清楚怎么就OK了,见笑。

Original comment by northeas...@gmail.com on 20 Dec 2011 at 3:14