unresolved external symbol 。。。

曾经出现过像这样一PIA一PIA的问题:

 

 

1>VideoDlg.obj : error LNK2019: unresolved external symbol AVI_close referenced in function "public: static unsigned long __cdecl CVideoDlg::CaptureThreadProc(void *)" (?CaptureThreadProc@CVideoDlg@@SAKPAX@Z)

1>VideoDlg.obj : error LNK2019: unresolved external symbol AVI_write_frame referenced in function "public: static unsigned long __cdecl CVideoDlg::CaptureThreadProc(void *)" (?CaptureThreadProc@CVideoDlg@@SAKPAX@Z)

1>VideoDlg.obj : error LNK2019: unresolved external symbol AVI_set_audio referenced in function "public: int __cdecl CVideoDlg::StartRec(void)" (?StartRec@CVideoDlg@@QAAHXZ)

1>VideoDlg.obj : error LNK2019: unresolved external symbol AVI_set_video referenced in function "public: int __cdecl CVideoDlg::StartRec(void)" (?StartRec@CVideoDlg@@QAAHXZ)

1>VideoDlg.obj : error LNK2019: unresolved external symbol AVI_open_output_file referenced in function "public: int __cdecl CVideoDlg::StartRec(void)" (?StartRec@CVideoDlg@@QAAHXZ)

 

 

翻译一下,就是

 

在函数  "public: static unsigned long __cdecl CVideoDlg::CaptureThreadProc(void *) 里引用的函数 AVI_close 未定义(是一个未解决的外部符号)

 

我的解决方法是:

 

在文件头部加上 #pragma comment (lib, "zc030x/AVILIB")

注意是AVILIB,不是AVILIB.H

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值