
由于毕业设计是关于刘媒体方面的编程windows media编程导向,我便买了《DirectShow开发指南》、《Windows Media 编程导向》开始硬啃。不久便见到了问题。
运行《Windows Media 编程导向》中实例FilterASFStreaming时一直提醒错误信息:
Creating library Debug/hqasfstrm.lib and object Debug/hqasfstrm.exp

CFilterASFStreaming.obj : error LNK2001: unresolved external symbol "public: __thiscall CPosPassThru::CPosPassThru(char const *,struct IUnknown *,long *,struct IPin *)" (??0CPosPassThru@@QAE@PBDPAUIUnknown@@PAJPAUIPin@@@Z)
Debug/hqasfstrm.ax : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

上网查资料,查书,发觉是Library配置错误,将..BASECLASSES/DEBUG写成了..BASECLASSES/DEBUG Unicode于是改回来,发觉错误更多:
Linking...
Creating library Debug/hqasfstrm.lib and object Debug/hqasfstrm.exp

CAudioInputPin.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CBaseInputPin::BreakConnect(void)" (?BreakConnect@CBaseInputPin@@UAEJXZ)
CVideoInputPin.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CBaseInputPin::BreakConnect(void)" (?BreakConnect@CBaseInputPin@@UAEJXZ)
CXRenderedPin.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CBaseInputPin::BreakConnect(void)" (?BreakConnect@CBaseInputPin@@UAEJXZ)

CFilterASFStreaming.obj : error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CBaseFilter::NonDelegatingRelease(void)" (?NonDelegatingRelease@CBaseFilter@@UAGKXZ)
CVideoInputPin.obj : error LNK2001: unresolved external symbol _MEDIASUBTYPE_IYUV
Debug/hqasfstrm.ax : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
折腾了半天,突然发现自己的..BASECLASSES/DEBUG中没有Strmbasd.lib文件,却有baseclasses.lib文件!
怪哉!
难道DirectX安装有错windows media编程导向,于是下了另一个安装文件,卸载后再次安装,再按原方式修改一下,编译通过!
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-121131-1.html
不动武就惊跑了美帝
自相矛盾前后不一似是而非的东西多的是
前段时间有文章指出中国打输了近一个世纪所参加的所有战争<包括我们自认为取得胜利的战争>