又来!!无法解析的外部符号

kobethesole 2008-04-22 09:50:35
Creating library Debug/cddareader.lib and object Debug/cddareader.exp
strmbaseD.lib(dllentry.obj) : warning LNK4217: locally defined symbol __mbsrchr imported in function __tcsrchr@8
strmbaseD.lib(wxdebug.obj) : warning LNK4049: locally defined symbol __mbsrchr imported
strmbaseD.lib(wxdebug.obj) : warning LNK4217: locally defined symbol _vsprintf imported in function "void __cdecl DbgLogInfo(unsigned long,unsigned long,char const *,...)" (?DbgLogInfo@@YAXKKPBDZZ)
strmbaseD.lib(wxdebug.obj) : warning LNK4217: locally defined symbol _sprintf imported in function "public: __thiscall CDisp::CDisp(double)" (??0CDisp@@QAE@N@Z)
CDDAReader.obj : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::FindPin(wchar_t const *,struct IPin * *)" (?FindPin@CBaseFilter@@UAGJPB_WPAPAUIPin@@@Z)
asyncreaderD.lib(asyncrdr.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::FindPin(wchar_t const *,struct IPin * *)" (?FindPin@CBaseFilter@@UAGJPB_WPAPAUIPin@@@Z)
CDDAReader.obj : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::JoinFilterGraph(struct IFilterGraph *,wchar_t const *)" (?JoinFilterGraph@CBaseFilter@@UAGJPAUIFilterGraph@@PB_W@Z)
asyncreaderD.lib(asyncrdr.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::JoinFilterGraph(struct IFilterGraph *,wchar_t const *)" (?JoinFilterGraph@CBaseFilter@@UAGJPAUIFilterGraph@@PB_W@Z)
CDDAReader.obj : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::QueryVendorInfo(wchar_t * *)" (?QueryVendorInfo@CBaseFilter@@UAGJPAPA_W@Z)
asyncreaderD.lib(asyncrdr.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::QueryVendorInfo(wchar_t * *)" (?QueryVendorInfo@CBaseFilter@@UAGJPAPA_W@Z)
asyncreaderD.lib(asyncrdr.obj) : error LNK2019: unresolved external symbol "public: __thiscall CBasePin::CBasePin(char *,class CBaseFilter *,class CCritSec *,long *,wchar_t const *,enum _PinDirection)" (??0CBasePin@@QAE@PADPAVCBaseFilter@@PAVCCritSec@@PAJPB_WW4_PinDirection@@@Z) referenced in function "public: __thiscall CAsyncOutputPin::CAsyncOutputPin(long *,class CAsyncReader *,class CAsyncIo *,class CCritSec *)" (??0CAsyncOutputPin@@QAE@PAJPAVCAsyncReader@@PAVCAsyncIo@@PAVCCritSec@@@Z)
asyncreaderD.lib(asyncrdr.obj) : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBasePin::QueryId(wchar_t * *)" (?QueryId@CBasePin@@UAGJPAPA_W@Z)
strmbaseD.lib(source.obj) : error LNK2019: unresolved external symbol __imp___wtoi referenced in function "public: virtual long __stdcall CSource::FindPin(unsigned short const *,struct IPin * *)" (?FindPin@CSource@@UAGJPBGPAPAUIPin@@@Z)
strmbaseD.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: int __thiscall CAMMsgEvent::WaitMsg(unsigned long)" (?WaitMsg@CAMMsgEvent@@QAEHK@Z)
strmbaseD.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __imp__timeGetTime@0
strmbaseD.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__timeSetEvent@20 referenced in function "unsigned int __stdcall CompatibleTimeSetEvent(unsigned int,unsigned int,void (__stdcall*)(unsigned int,unsigned int,unsigned long,unsigned long,unsigned long),unsigned long,unsigned int)" (?CompatibleTimeSetEvent@@YGIIIP6GXIIKKK@ZKI@Z)
strmbaseD.lib(wxdebug.obj) : error LNK2019: unresolved external symbol __imp___vsnprintf referenced in function "void __cdecl DbgBreakPoint(char const *,int,char const *,...)" (?DbgBreakPoint@@YAXPBDH0ZZ)
Debug/cddareader.ax : fatal error LNK1120: 9 unresolved externals
Build log was saved at "file://f:\guliverkli\src\filters\reader\cddareader\Debug\BuildLog.htm"
cddareader - 14 error(s), 4 warning(s)
========== Build: 19 succeeded, 68 failed, 169 up-to-date, 0 skipped ==========
难道是还有lib没有加进去?那我该怎样找到这些库呢?
多谢赐教
...全文
1363 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
vcmfcjavabbs 2009-12-07
  • 打赏
  • 举报
回复
CDDAReader.obj : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter::FindPin(wchar_t const *,struct IPin * *)" (?FindPin@CBaseFilter@@UAGJPB_WPAPAUIPin@@@Z)
这个提示是说
CDDAReader.obj中有一个无法解析的外部符号 "public: virtual long __stdcall CBaseFilter::FindPin(wchar_t const *,struct IPin * *)"
出现此类提示,可能是以下两个原因之一:
(1)没有在类的实现文件中给出某个函数的实现
(2)没有在编译环境中添加相应的lib文件。
如果错误由(2)引起,请按以下步骤实施:
(1)在错误提示中,找到那个该死的无法解析的外部符号,在本例中是“CBase::FindPin";
(2) 去Microsoft的MSDN看看。http://msdn.microsoft.com/en-us/default.aspx
(3)打开网页,将会看到网页的顶部有一个"Search MSDN with Bing"r的搜索框,在这个框框里
输入CBase::FindPin,按Enter键打开搜索页面。
(4)在搜索页面中可能会有多个搜索结果,选择最为接近的一个进入。
(5)此时,可以看到有关此函数的详细情报,包括声明此函数的头文件和引入库文件。





UltraBejing 2008-05-01
  • 打赏
  • 举报
回复
这个简单啊,网上搜一下就得到答案了.
fjfqslg 2008-04-29
  • 打赏
  • 举报
回复
Winmm.lib
czxstarhust 2008-04-27
  • 打赏
  • 举报
回复
学习了啊
kobethesole 2008-04-25
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 lv603 的回复:]
大哥们,快帮帮忙吧,我也遇到这个问题,找了n篇资料都没有解决啊!!!!!!!!!!救命~~~~~
[/Quote]
同命相连啊 ···一起加油哦···
supercow 2008-04-25
  • 打赏
  • 举报
回复
换vc6 试试.
然后就是 把找不到的符号 放到msdn看看, 它会告诉你在什么lib里的.
lv603 2008-04-25
  • 打赏
  • 举报
回复
大哥们,快帮帮忙吧,我也遇到这个问题,找了n篇资料都没有解决啊!!!!!!!!!!救命~~~~~
ouyh12345 2008-04-23
  • 打赏
  • 举报
回复
CBaseFilter::FindPin

CBaseFilter不是directshow里的标准类,得自己找
kobethesole 2008-04-23
  • 打赏
  • 举报
回复
本人用的是vs2005 xpsp2,请问如何用多文件查找?多谢赐教!!
嵌云阁主 2008-04-22
  • 打赏
  • 举报
回复
用多文件查找,系统部分的函数在MSDN找
kobethesole 2008-04-22
  • 打赏
  • 举报
回复
那首先要找到包含以上函数的库吧
可我该怎么找呢 ··
比如CBaseFilter::FindPin(),我该如何查找相应的lib?
NKLoveRene 2008-04-22
  • 打赏
  • 举报
回复
必然是了。。。

24,855

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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