A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
来源:互联网 发布:类似易企秀的软件免费 编辑:程序博客网 时间:2024/06/07 02:13
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q148652 写的挺正确的。
下面的实际解决方法之一。
在编译一个opensource代码的时候,发现其在 stdafx.h文件的最前面包含了其他代码,导致如下问题出现
#pragma once
#include "../../../DSUtil/SharedInclude.h"
#define VC_EXTRALEAN// Exclude rarely-used stuff from Windows headers
#define ResStr(id) CString(MAKEINTRESOURCE(id))
#include <afxdisp.h>
#include <afxole.h>
#include <streams.h>
#include <dvdmedia.h>
#include <mpconfig.h>
#ifndef _WIN64
#include <qt/qt.h>
#endif
#include "../../../DSUtil/DSUtil.h"
修改方式为:将#include "../../../DSUtil/SharedInclude.h" 放到后面,这样lib库的加载顺序会变为先加载mfc库。 OK
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visua
- zz : A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++ ---- nafxcw.lib(a
- How to solve problem caused when the CRT library and MFC libraries are linked in the wrong order
- When the C Run-Time (CRT) library and Microsoft Foundation Class (MFC) libraries are linked in the w
- Typically this problem occurs when you are putting in a data that is too long for the column. In t
- What are the differences between a pointer variable and a reference variable in C++?
- What are the differences between a pointer variable and a reference variable in C++?
- You receive a C4226 or a C4236 error message when you compile code to contain the keyword in 32-bit Visual C++(ZZ)
- how to find the corresponding libraries are linked to when some APIs are used(2.0)
- how to find the corresponding libraries are linked to when some APIs are used(3.0)
- What are the differences between struct and class in C++?
- Why are the letters in the English "alphabet" in the order that they are?
- “Use MFC in a Static Library” -> CRT static
- JBoss Cache NonManagedConnectionFactory will log the password in clear text when an exception occurs
- Question 6: Which of the following are container adapters in the STL (Standard Template Library) in C++?
- Use MFC in a Static Library,This may be due to a corruption of the heap....
- 记录一下
- VI编辑器打开多个文件
- intsafe.h没有找到的问题
- vim删除文本的命令
- 转载 android listView 用法
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- vs设计页面卡死
- GetMessage与Peekmessage区别
- linux下的串口终端图形工具
- 大教堂和市集(The Cathedral and the Bazaar)
- MSAGL samples 节点为 图片NodesWithImage
- Win7快速启动栏设置及防止消失方法
- PCI配置空间和PCI存储空间
- BW中暴力激活的函数或程序