wince6 Direct show编译问题

UUcall007 2011-01-04 04:21:55
由于想在wince6下测试一下direct show的source filter的例子.把asyncrdr.h asyncrdr.cpp asyncio.h asyncio.cpp加到自己的工程中编译.报如下链接错误,哪位大牛看看是怎么回事?
我已经在我的工程中加入strmiids.lib strmbase.lib 两个库了

Error 1 error LNK2005: "public: __cdecl CCritSec::CCritSec(void)" (??0CCritSec@@QAA@XZ) already defined in asyncio.obj strmbase.lib gg

Error 2 error LNK2005: "public: __cdecl CCritSec::~CCritSec(void)" (??1CCritSec@@QAA@XZ) already defined in asyncio.obj strmbase.lib gg

Error 3 error LNK2005: "public: void __cdecl CCritSec::Lock(void)" (?Lock@CCritSec@@QAAXXZ) already defined in asyncio.obj strmbase.lib gg

Error 4 error LNK2005: "public: void __cdecl CCritSec::Unlock(void)" (?Unlock@CCritSec@@QAAXXZ) already defined in asyncio.obj strmbase.lib gg

Error 5 error LNK2019: unresolved external symbol "public: __cdecl CBaseList::CBaseList(wchar_t *)" (??0CBaseList@@QAA@PA_W@Z) referenced in function "public: __cdecl CGenericList<class CAsyncRequest>::CGenericList<class CAsyncRequest>(wchar_t *)" (??0?$CGenericList@VCAsyncRequest@@@@QAA@PA_W@Z) asyncio.obj gg

Error 6 error LNK2001: unresolved external symbol "public: virtual long __cdecl CBasePin::QueryId(wchar_t * *)" (?QueryId@CBasePin@@UAAJPAPA_W@Z) asyncrdr.obj gg

Error 7 error LNK2019: unresolved external symbol "public: __cdecl CMemAllocator::CMemAllocator(wchar_t *,struct IUnknown *,long *)" (??0CMemAllocator@@QAA@PA_WPAUIUnknown@@PAJ@Z) referenced in function "protected: long __cdecl CAsyncOutputPin::InitAllocator(struct IMemAllocator * *)" (?InitAllocator@CAsyncOutputPin@@IAAJPAPAUIMemAllocator@@@Z) asyncrdr.obj gg

Error 8 error LNK2001: unresolved external symbol "public: virtual long __cdecl CBaseFilter::FindPin(wchar_t const *,struct IPin * *)" (?FindPin@CBaseFilter@@UAAJPB_WPAPAUIPin@@@Z) asyncrdr.obj gg

Error 9 error LNK2001: unresolved external symbol "public: virtual long __cdecl CBaseFilter::JoinFilterGraph(struct IFilterGraph *,wchar_t const *)" (?JoinFilterGraph@CBaseFilter@@UAAJPAUIFilterGraph@@PB_W@Z) asyncrdr.obj gg

Error 10 error LNK2001: unresolved external symbol "public: virtual long __cdecl CBaseFilter::QueryVendorInfo(wchar_t * *)" (?QueryVendorInfo@CBaseFilter@@UAAJPAPA_W@Z) asyncrdr.obj gg

Error 11 error LNK2019: unresolved external symbol "public: __cdecl CBasePin::CBasePin(wchar_t *,class CBaseFilter *,class CCritSec *,long *,wchar_t const *,enum _PinDirection)" (??0CBasePin@@QAA@PA_WPAVCBaseFilter@@PAVCCritSec@@PAJPB_WW4_PinDirection@@@Z) referenced in function "public: __cdecl CAsyncOutputPin::CAsyncOutputPin(long *,class CAsyncReader *,class CAsyncIo *,class CCritSec *)" (??0CAsyncOutputPin@@QAA@PAJPAVCAsyncReader@@PAVCAsyncIo@@PAVCCritSec@@@Z) asyncrdr.obj gg

Error 12 error LNK2019: unresolved external symbol "public: __cdecl CBaseFilter::CBaseFilter(wchar_t *,struct IUnknown *,class CCritSec *,struct _GUID const &,long *)" (??0CBaseFilter@@QAA@PA_WPAUIUnknown@@PAVCCritSec@@ABU_GUID@@PAJ@Z) referenced in function "public: __cdecl CAsyncReader::CAsyncReader(wchar_t *,struct IUnknown *,class CAsyncStream *,long *)" (??0CAsyncReader@@QAA@PA_WPAUIUnknown@@PAVCAsyncStream@@PAJ@Z) asyncrdr.obj gg

Error 13 fatal error LNK1120: 8 unresolved externals S_WE6R3_SDK gg
...全文
127 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
UUcall007 2011-05-27
  • 打赏
  • 举报
回复
重新编了一下源码就可以了
theseahd 2011-04-01
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 freddyhu 的回复:]
引用 4 楼 ben_jiang 的回复:
参考我的贴子

http://topic.csdn.net/u/20101208/12/086275db-2709-4421-8bc0-e5a4a5c1e19c.html


http://blog.csdn.net/hhygcy/archive/2009/05/14/4183834.aspx


哎 要先登陆, 谢谢楼上这位,问题解……
[/Quote]
请问怎么解决的啊?能否指点一下啊?
FreddyHu 2011-01-17
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 ben_jiang 的回复:]
参考我的贴子

http://topic.csdn.net/u/20101208/12/086275db-2709-4421-8bc0-e5a4a5c1e19c.html


http://blog.csdn.net/hhygcy/archive/2009/05/14/4183834.aspx
[/Quote]

哎 要先登陆, 谢谢楼上这位,问题解决
ben_jiang 2011-01-06
  • 打赏
  • 举报
回复

参考我的贴子

http://topic.csdn.net/u/20101208/12/086275db-2709-4421-8bc0-e5a4a5c1e19c.html


http://blog.csdn.net/hhygcy/archive/2009/05/14/4183834.aspx
UUcall007 2011-01-04
  • 打赏
  • 举报
回复
没人遇到过这个问题吗????
UUcall007 2011-01-04
  • 打赏
  • 举报
回复
我就编译的是release的工程 我知道debug 用strmbased.lib
zerocnd 2011-01-04
  • 打赏
  • 举报
回复
strmbase.lib 这个库是自己编译的吗,微软提供的那个是release版本的,你要用directshow的工程自己编译一个debug版本来用

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧