VC++出现error LNK2005该如何解决啊
本人在用VC++6.0编译陆其明老师的《Windowsmedia编程导向》中加水印组件(DmoVideoWatermark)时出现如下错误:Linking...Strmb...
本人在用VC++6.0编译陆其明老师的《Windows media 编程导向》中加水印组件(DmoVideoWatermark)时出现如下错误:
Linking...
Strmbasd.lib(dllentry.obj) : error LNK2005: _DllGetClassObject@12 already defined in DmoVideoWatermark.obj
Strmbasd.lib(dllentry.obj) : error LNK2005: _DllCanUnloadNow@0 already defined in DmoVideoWatermark.obj
Strmbasd.lib(dllentry.obj) : warning LNK4006: _DllGetClassObject@12 already defined in DmoVideoWatermark.obj; second definition ignored
Strmbasd.lib(dllentry.obj) : warning LNK4006: _DllCanUnloadNow@0 already defined in DmoVideoWatermark.obj; second definition ignored
Creating library Debug/DmoVidWmrk.lib and object Debug/DmoVidWmrk.exp
Strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A)
Strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA)
Debug/DmoVidWmrk.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
DmoVidWmrk.dll - 5 error(s), 2 warning(s)
请问这是什么错误啊,该如何解决?我在网上查了一下,似乎没有相关的解决方案.... 展开
Linking...
Strmbasd.lib(dllentry.obj) : error LNK2005: _DllGetClassObject@12 already defined in DmoVideoWatermark.obj
Strmbasd.lib(dllentry.obj) : error LNK2005: _DllCanUnloadNow@0 already defined in DmoVideoWatermark.obj
Strmbasd.lib(dllentry.obj) : warning LNK4006: _DllGetClassObject@12 already defined in DmoVideoWatermark.obj; second definition ignored
Strmbasd.lib(dllentry.obj) : warning LNK4006: _DllCanUnloadNow@0 already defined in DmoVideoWatermark.obj; second definition ignored
Creating library Debug/DmoVidWmrk.lib and object Debug/DmoVidWmrk.exp
Strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A)
Strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA)
Debug/DmoVidWmrk.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
DmoVidWmrk.dll - 5 error(s), 2 warning(s)
请问这是什么错误啊,该如何解决?我在网上查了一下,似乎没有相关的解决方案.... 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询