0

我从链接GMFBridge - DirectShow 中的多个图形下载了一个直接显示项目

我添加了以下库

C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug\strmbasd.lib

C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\winmm.lib

C:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\VC\lib\comsuppw.lib

当我构建项目时,我收到了错误:-

error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::FindPin(unsigned short const *,struct IPin * *)" (?FindPin@CBaseFilter@@UAGJPBGPAPAUIPin@@@Z)    
error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::FindPin(unsigned short const *,struct IPin * *)" (?FindPin@CBaseFilter@@UAGJPBGPAPAUIPin@@@Z)    GMFBridge\source.obj    GMFBridge
error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::QueryVendorInfo(unsigned short * *)" (?QueryVendorInfo@CBaseFilter@@UAGJPAPAG@Z)         \GMFBridge\sink.obj GMFBridge
error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::QueryVendorInfo(unsigned short * *)" (?QueryVendorInfo@CBaseFilter@@UAGJPAPAG@Z)         \GMFBridge\source.obj   GMFBridge
error LNK2019: unresolved external symbol "public: virtual long __stdcall CBaseFilter::JoinFilterGraph(struct IFilterGraph *,unsigned short const *)" (?JoinFilterGraph@CBaseFilter@@UAGJPAUIFilterGraph@@PBG@Z) referenced in function "public: virtual long __stdcall BridgeSink::JoinFilterGraph(struct IFilterGraph *,unsigned short const *)" (?JoinFilterGraph@BridgeSink@@UAGJPAUIFilterGraph@@PBG@Z)    \GMFBridge (1)\GMFBridge\sink.obj   GMFBridge
error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::JoinFilterGraph(struct IFilterGraph *,unsigned short const *)" (?JoinFilterGraph@CBaseFilter@@UAGJPAUIFilterGraph@@PBG@Z)    \GMFBridge\source.obj   GMFBridge
error LNK2019: unresolved external symbol "public: __thiscall CBaseInputPin::CBaseInputPin(char const *,class CBaseFilter *,class CCritSec *,long *,unsigned short const *)" (??0CBaseInputPin@@QAE@PBDPAVCBaseFilter@@PAVCCritSec@@PAJPBG@Z) referenced in function "public: __thiscall BridgeSinkInput::BridgeSinkInput(class BridgeSink *,class BridgeStream *,class CCritSec *,long *,unsigned short const *)" (??0BridgeSinkInput@@QAE@PAVBridgeSink@@PAVBridgeStream@@PAVCCritSec@@PAJPBG@Z)  \GMFBridge\sink.obj GMFBridge
error LNK2001: unresolved external symbol "public: virtual long __stdcall CBasePin::QueryId(unsigned short * *)" (?QueryId@CBasePin@@UAGJPAPAG@Z)   GMFBridge\sink.obj  GMFBridge
error LNK2001: unresolved external symbol "public: virtual long __stdcall CBasePin::QueryId(unsigned short * *)" (?QueryId@CBasePin@@UAGJPAPAG@Z)   )\GMFBridge\source.obj  GMFBridge
error LNK2019: unresolved external symbol "public: __thiscall CBaseOutputPin::CBaseOutputPin(char const *,class CBaseFilter *,class CCritSec *,long *,unsigned short const *)" (??0CBaseOutputPin@@QAE@PBDPAVCBaseFilter@@PAVCCritSec@@PAJPBG@Z) referenced in function "public: __thiscall BridgeSourceOutput::BridgeSourceOutput(class BridgeSource *,class BridgeStream *,class CCritSec *,long*,unsigned short const *)" (??0BridgeSourceOutput@@QAE@PAVBridgeSource@@PAVBridgeStream@@PAVCCritSec@@PAJPBG@Z)   \GMFBridge\source.obj   GMFBridge
4

2 回答 2

3
  1. 项目本身和strmbasd库需要使用相同的项目设置构建才能很好地链接
  2. 来自 GDCL 网站的存档已经为您提供了一个预构建的二进制文件 (GMFBridge.dll)
于 2012-12-24T10:51:25.567 回答
2

谢谢,谢谢,非常感谢罗曼(当然还有三月野兔)。如果我被允许,我会投票赞成你的答案(还没有足够的声誉)。三月野兔常见问题解答绝对有帮助,尤其是问题的第二个答案:

您在基类和程序中设置了不同的“将 wchar_t 视为内置类型”

于 2013-07-26T08:54:27.550 回答