Use windows monbile develop a filter for DirectShow app find some link errors(vs2005):
- error LNK2001: unresolved external symbol "public: __cdecl CTransInPlaceFilter::CTransInPlaceFilter(wchar_t*,struct IUnknown *,struct _GUID const &,long *)"(??0CTransInPlaceFilter@@QAA@PA_WPAUIUnknown@@ABU_GUID@@PAJ@Z)
- error LNK2001: unresolved external symbol "public: virtualunsigned long __cdecl CBaseFilter::NonDelegatingRelease(void)"(?NonDelegatingRelease@CBaseFilter@@UAAKXZ)
- error LNK2001: unresolved external symbol "public: virtuallong __cdecl CTransformFilter::FindPin(wchar_tconst *,struct IPin * *)"(?FindPin@CTransformFilter@@UAAJPB_WPAPAUIPin@@@Z)
- error LNK2001: unresolved external symbol "public: virtuallong __cdecl CBaseFilter::JoinFilterGraph(structIFilterGraph *,wchar_t const *)"(?JoinFilterGraph@CBaseFilter@@UAAJPAUIFilterGraph@@PB_W@Z)
- error LNK2001: unresolved external symbol "public: virtuallong __cdecl CBaseFilter::QueryVendorInfo(wchar_t* *)" (?QueryVendorInfo@CBaseFilter@@UAAJPAPA_W@Z)
- error LNK2001: unresolved external symbol "void __cdecl DbgBreakPoint(wchar_tconst *,wchar_t const *,int)" (?DbgBreakPoint@@YAXPB_W0H@Z)
解决方法如下:
1.Under Project Propeties/C++/Language change the compiler option "Treat wchar_t as builtin type" to No and rebuild
2. The second part of the problem is that you need to link against the debug version of strmbase.lib. You can get one by downloading and installing a trial version of Windows CE 6 Platform Builder or from here