directshow使用strbase出错

来源:互联网 发布:光纤网络交换机 编辑:程序博客网 时间:2024/05/01 21:52

在使用strbase出现了错误:

reating library Debug/VR.lib and object Debug/VR.exp VR.obj : error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CBaseFilter::NonDelegatingRelease(void)" (?NonDelegatingRelease@CBaseFilter@@UAGKXZ) VR.obj : error LNK2001: unresolved external symbol "public: void __thiscall CCritSec::Lock(void)" (?Lock@CCritSec@@QAEXXZ) VR.obj : error LNK2001: unresolved external symbol "public: void __thiscall CCritSec::Unlock(void)" (?Unlock@CCritSec@@QAEXXZ) Debug/VR.dll : fatal error LNK1120: 3 unresolved externals Error executing link.exe.

在网上搜查相关信息得知,在调试版和发布版要使用不同的库文件:看是编译什么版本咯,Debug版用strmbasd.lib,Releas版用strmbase.lib。

所以在VC6.0中进行了设置:Build--放置可远行配置(倒数第3个,可恶的创天中文版)--XXX-Win32   Release

错误提示没有进行了顺利的编译和链接。但目前还不清楚为什么2个库用在不同的版本中才行。