• 全部
  • 问答

capboy兄,我还是得自杀(编译NETPLAYER)

davidwee 2002-04-25 06:45:59
(DLLDEMO)总是这样:

--------------------Configuration: DllDemo - Win32 Debug--------------------
Linking...
asynbase.lib(asyncrdr.obj) : error LNK2005: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in strmbasd.lib(wxutil.obj)
asynbase.lib(asyncio.obj) : error LNK2005: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in strmbasd.lib(wxutil.obj)
asynbase.lib(asyncrdr.obj) : warning LNK4006: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in strmbasd.lib(wxutil.obj); second definition ignored
asynbase.lib(asyncio.obj) : warning LNK4006: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in strmbasd.lib(wxutil.obj); second definition ignored
Creating library Debug/DllDemo.lib and object Debug/DllDemo.exp
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol "_sprintf" imported
DllDemo.obj : error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CBaseFilter::NonDelegatingRelease(void)" (?NonDelegatingRelease@CBaseFilter@@UAGKXZ)
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __imp__strrchr
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol __imp__strrchr
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A)
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A)
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA)
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA)
Debug/DllDemo.dll : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.

DllDemo.dll - 10 error(s), 4 warning(s)

我用的是DX81,VC6,路径设置正确无误。

另外,我在用Elecard SDK2时也遇到些问题,愿意帮助我吗?
...全文
8 点赞 收藏 2
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
capboy 2002-04-26
asynbase.lib(asyncrdr.obj) : error LNK2005: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in strmbasd.lib(wxutil.obj)
asynbase.lib(asyncio.obj) : error LNK2005: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in strmbasd.lib(wxutil.obj)
asynbase.lib(asyncrdr.obj) : warning LNK4006: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in strmbasd.lib(wxutil.obj); second definition ignored
asynbase.lib(asyncio.obj) : warning LNK4006: "public: __thiscall CCritSec::~CCritSec(void)" (??1CCritSec@@QAE@XZ) already defined in
这个错误可以通过你在project setting->c/c++->category preprocesser
->preprocesser definition添加DEBUG来解决.
回复
gpmn 2002-04-25
你的某些头文件被包含了两次或者以上,改改包含的方式;
能放到cpp中去包含的都放到cpp里面去
回复
相关推荐
发帖
游戏开发
创建于2007-08-27

7923

社区成员

游戏开发相关内容讨论专区
申请成为版主
帖子事件
创建了帖子
2002-04-25 06:45
社区公告
暂无公告