direct9里面的例程问题,在线等......

SuperBC 2003-05-12 02:43:42
我想编译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.

请问大虾我该如何做。
...全文
58 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
qqmaxmin 2003-05-14
  • 打赏
  • 举报
回复
楼上说得对
hboy 2003-05-13
  • 打赏
  • 举报
回复
你把Direct SDK 的include 与lib 下的文件拷贝至VC6.0的include 与lib 文件
NoneSoVile 2003-05-13
  • 打赏
  • 举报
回复
漏了一些头文件或库文件
再不就在option里面换一下各种路径的顺序
earthtree 2003-05-13
  • 打赏
  • 举报
回复
你没有加载一个需要的库文件。
j0j0 2003-05-13
  • 打赏
  • 举报
回复
directX中的sample中的baseclasses这个project要编译,并加入lib,include路径
Fnoopy 2003-05-12
  • 打赏
  • 举报
回复
试着编译一下baseclass的debug版本吧,再把生成的lib文件连接到工程。

2,542

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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