DirectShow的filterGrabber编译
编译工具 :VS2005。
直接编译产生错误:1>LINK : fatal error LNK1117: syntax error in option 'debug:mapped,full'
解决方法:Project-property-Configure Properties-Liker-Command Line.删除/debug:mapped,full
重新编译产生错误:
1>strmbase.lib(amfilter.obj) : error LNK2019: unresolved external symbol _CLSID_MemoryAllocator referenced in function _CreateMemoryAllocator@4
1>strmbase.lib(amfilter.obj) : error LNK2019: unresolved external symbol _IID_IMemAllocator referenced in function _CreateMemoryAllocator@4
1>strmbase.lib(amfilter.obj) : error LNK2019: unresolved external symbol _IID_ISeekingPassThru referenced in function _CreatePosPassThru@16
1>strmbase.lib(amfilter.obj) : error LNK2019: unresolved external symbol _CLSID_SeekingPassThru referenced in function _CreatePosPassThru@16
1>strmbase.lib(amfilter.obj) : error LNK2019: unresolved external symbol _IID_IAMovieSetup referenced in function "public: virtual long __stdcall CBaseFilter::NonDelegatingQueryInterface(struct _GUID const &,void * *)" (?NonDelegatingQueryInterface@CBaseFilter@@UAGJABU_GUID@@PAPAX@Z)
1>strmbase.lib(dllsetup.obj) : error LNK2001: unresolved external symbol _IID_IAMovieSetup
1>strmbase.lib(amfilter.obj) : error LNK2019: unresolved external symbol _IID_IMediaFilter referenced in function "public: virtual long __stdcall CBaseFilter::NonDelegatingQueryInterface(struct _GUID const &,void * *)" (?NonDelegatingQueryInterface@CBaseFilter@@UAGJABU_GUID@@PAPAX@Z)
…………
一大堆错误!
解决方法:加入uuid.lib和strmiids.lib;
Project-property-Configuration Properties-Linker-Input-Additiona Dependencies中加入uuid.lib和strmiids.lib;中间用空格隔开。
问题解决!