编译DLL时"error LNK2005: _DllMain@12 already defined"错误
来源:互联网 发布:淘宝ipad pro鉴别 编辑:程序博客网 时间:2024/05/22 01:49
编译出现如下错误
nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in QQInfo.obj
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in QQInfo.obj; second definition ignored
Creating library Debug/QQInfo.lib and object Debug/QQInfo.exp
Debug/QQInfo.dll : fatal error LNK1169: one or more multiply defined symbols found
解决方法:
project setting->C/C++, 在category中选择Preprocessor,将preprocessor definitions中的_USRDLL删除即可。
网上查找过程中,MSDN也有一些应对资料
A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
几种解决方案内容如下:
There are two ways to resolve this problem. The first solution involves forcing the linker to link the libraries in the correct order. The second solution allows you to find the module that is causing the problem and to correct it.
Note The following steps are based on Visual C++ 6.0.
Solution One: Force Linker to Link Libraries in Correct Order
To view the current library link order, follow these steps:
- On the Projectmenu, click Settings.
- In the Settings For view of theProject Settings dialog box, click to select the projectconfiguration that is getting the link errors.
- On the Link tab, type/verbose:lib in the Project Optionsbox.
- Rebuild your project. The libraries will be listed in theoutput window during the linking process.
- 编译DLL时"error LNK2005: _DllMain@12 already defined"错误
- 编译DLL时"error LNK2005: _DllMain@12 already defined"错误
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的错误
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的错误
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的错误
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的错误
- error LNK2005: _DllMain@12 already defined 错误解决方案
- error LNK2005: _DllMain@12 already defined
- error LNK2005: _DllMain@12 already defined
- error LNK2005: _DllMain@12 already defined
- 调试: 编译错误, mfcs42.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmai
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的应对
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的应对
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的应对(转载)
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的应对
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的解决办法
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的应对
- 用VC写DLL中"error LNK2005: _DllMain@12 already defined"的应对 .
- 珍惜眼前人
- Spring的定时器说明文档
- 数据库系统实现(第2版)
- vi常用命令
- 数据挖掘资料
- 编译DLL时"error LNK2005: _DllMain@12 already defined"错误
- 编译u-boot,运行于Skyeye
- 汉字按拼音排序-----SQL
- 内存泄漏
- FLEX例子之VideoDisplay(FLV视频播放器)
- XPE启动风格
- WinExec,ShellExecute ,CreateProcess 区别
- ★SqlServer 中 link serve的使用
- JQuery 初学