direct9里面的例程问题,在线等......
我想编译SampleGrabber这个历程,我已经在vc/option里面设置了include和lib,分别是directsdk目录下的include和lib,可是还是变异报错。
错误如下:
Creating library Debug_Unicode/grabber.lib and object Debug_Unicode/grabber.exp
grabber.obj : error LNK2001: unresolved external symbol "void __stdcall DbgAssert(unsigned short const *,unsigned short const *,int)" (?DbgAssert@@YGXPBG0H@Z)
grabber.obj : error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CBaseFilter::NonDelegatingRelease(void)" (?NonDelegatingRelease@CBaseFilter@@UAGKXZ)
grabber.obj : error LNK2001: unresolved external symbol "public: __thiscall CTransInPlaceFilter::CTransInPlaceFilter(unsigned short *,struct IUnknown *,struct _GUID const &,long *,bool)" (??0CTransInPlaceFilter@@QAE@PAGPAUIUnknown@@ABU_GUID@@PAJ_N@Z
)
grabber.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CTransInPlaceInputPin::CompleteConnect(struct IPin *)" (?CompleteConnect@CTransInPlaceInputPin@@UAEJPAUIPin@@@Z)
grabber.obj : error LNK2001: unresolved external symbol "public: __thiscall CTransInPlaceInputPin::CTransInPlaceInputPin(unsigned short *,class CTransInPlaceFilter *,long *,unsigned short const *)" (??0CTransInPlaceInputPin@@QAE@PAGPAVCTransInPlaceF
ilter@@PAJPBG@Z)
grabber.obj : error LNK2001: unresolved external symbol "void __cdecl DbgLogInfo(unsigned long,unsigned long,unsigned short const *,...)" (?DbgLogInfo@@YAXKKPBGZZ)
grabber.obj : error LNK2001: unresolved external symbol "long __stdcall CopyMediaType(struct _AMMediaType *,struct _AMMediaType const *)" (?CopyMediaType@@YGJPAU_AMMediaType@@PBU1@@Z)
grabber.obj : error LNK2001: unresolved external symbol "void __stdcall DbgBreakPoint(unsigned short const *,unsigned short const *,int)" (?DbgBreakPoint@@YGXPBG0H@Z)
grabber.obj : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseAllocator::GetFreeCount(long *)" (?GetFreeCount@CBaseAllocator@@UAGJPAJ@Z)
grabber.obj : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseAllocator::SetNotify(struct IMemAllocatorNotifyCallbackTemp *)" (?SetNotify@CBaseAllocator@@UAGJPAUIMemAllocatorNotifyCallbackTemp@@@Z)
grabber.obj : error LNK2001: unresolved external symbol "public: __thiscall CMemAllocator::CMemAllocator(unsigned short *,struct IUnknown *,long *)" (??0CMemAllocator@@QAE@PAGPAUIUnknown@@PAJ@Z)
grabber.obj : error LNK2001: unresolved external symbol "public: __thiscall CMediaSample::CMediaSample(unsigned short *,class CBaseAllocator *,long *,unsigned char *,long)" (??0CMediaSample@@QAE@PAGPAVCBaseAllocator@@PAJPAEJ@Z)
Debug_Unicode\grabber.ax : fatal error LNK1120: 12 unresolved externals
Error executing link.exe.
请问大虾我该如何做。