Chinaunix首页 | 论坛 | 博客
  • 博客访问: 42148
  • 博文数量: 11
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 120
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-10 10:40
文章分类
文章存档

2010年(1)

2008年(1)

2007年(9)

我的朋友
最近访客

分类: WINDOWS

2007-11-27 18:25:46

nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined
google半天没搞定
只好自己搞,最后将工程里面的_USRDLL宏定义去除,瞎猫碰到死耗子了,好了。

在afx.h中发现一段代码
#ifdef _USRDLL
#pragma comment(linker, "/include:__afxForceUSRDLL")
#endif
就我现在的水平,没看懂,留着以后慢慢看吧,呵呵!
阅读(3072) | 评论(10) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-04-23 10:52:07

seth1002 才是神啊!!! 输入那一段代码,真的解决我的问题啊!!

chinaunix网友2011-04-23 10:52:07

seth1002 才是神啊!!! 输入那一段代码,真的解决我的问题啊!!

chinaunix网友2009-07-16 13:33:57

我也找了一个方法 虽然我也不理解 在stdafx.h 头文件里include "afx.h" 在stdafx.cpp文件里加下面的就OK了 #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #define new DEBUG_NEW ///////////////////////////////////////////////////////////////////////////// // global data // The following symbol used to force inclusion of this module for _USRDLL #ifdef _X86_ extern "C" { int _afxForceUSRDLL; } #else extern "C" { int __afxForceUSRDLL; } #endif

chinaunix网友2009-07-16 13:33:57

我也找了一个方法 虽然我也不理解 在stdafx.h 头文件里include "afx.h" 在stdafx.cpp文件里加下面的就OK了 #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #define new DEBUG_NEW ///////////////////////////////////////////////////////////////////////////// // global data // The following symbol used to force inclusion of this module for _USRDLL #ifdef _X86_ extern "C" { int _afxForceUSRDLL; } #else extern "C" { int __afxForceUSRDLL; } #endif

dotaluna2008-04-15 11:29:42

非常感谢!!! 这个猪一样的问题困绕我很久了 谢谢