新建一个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)郁闷了好几天了。请大家帮帮忙!