新建一个win32dll->a dll that exports some symbols。 在原文件中用到了Cmap(直接继承的cobject),要将这个Cmap传入到这个dll中。 生成dll后在.h文件中添加了用到的一个类,因为要用到Cmap,所以加入了#include<afxtempl.h>,但报错:Linking...
nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in last.obj
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in last.obj; second definition ignored
Creating library Debug/last.lib and object Debug/last.exp
Debug/last.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.last.dll - 2 error(s), 1 warning(s)郁闷了好几天了。请大家帮帮忙!
nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in last.obj
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in last.obj; second definition ignored
Creating library Debug/last.lib and object Debug/last.exp
Debug/last.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.last.dll - 2 error(s), 1 warning(s)郁闷了好几天了。请大家帮帮忙!
解决方案 »
- 请教关于directshow开发高清视频播放器的基本问题~~
- InstallShield10.5的MSI工程如何使用脚本
- CWMPPlayer4 在线程里怎么不能正常运行呢?
- 如何根据打印机名称判断是否为虚拟打印机????
- *****请教:如何用CSocket实现网络图像(线条、位图)的传输*****
- Access97数据库如转换到MS SQL?
- >>>>哪位愿帮帮我,谁能提供给我最新的Platform SDK header/library的下载地址,我给100分!
- 如果写这个论坛程序的人能看到这里的话请留意!!!(并非放水)
- 怎样使基于对话框的窗口最大化?
- 關於ActiveX控件在VB下面使用的一個問題
- 如何实现CString向WCHAR的串转换?
- 关于远程线程注入,请各位指点一下
你是不是将mfc的源代码拷过来了一部分,那你看看里面是不是已经有DllMain了。