将项目设置->C/C++->Use run-time library的设置设为Multithreaded DLL.
解决方案 »
- 超音速启动工具升级啦,增加贴边与透明设置功能
- MFC占用内存过高
- 为什么vs2008编译出来的release版程序,ida pro还提示有debug信息?
- 创建ACCESS数据库问题?
- MSSQL安装多个实例后,程序的连接字符串如何写?
- 求MSN8浏览器的使用方法或者高清晰界面截图,高分
- NLC格式的电子书用什么阅览器看
- 用VC的MFC ActiveX Wizard向导,写ocx控件,怎么实现在控件表面右击时弹出菜单,最好能给代码例子
- 关于CString
- 快来看看,很神奇的结果
- 在RELEASE下编译有LNK2001错误,但是在DEBUG模式下编译运行都正常,是怎么会事?
- 启动服务时报1053错误,请高手帮助,在线等候!
MSVCRT.lib(dllsupp.obj) : error LNK2005: __fltused already defined in StdAfx.obj
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in StdAfx.obj
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in StdAfx.obj
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in StdAfx.obj
MSVCRT.lib(dllsupp.obj) : warning LNK4006: __fltused already defined in StdAfx.obj; second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _free already defined in StdAfx.obj; second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _malloc already defined in StdAfx.obj; second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _realloc already defined in StdAfx.obj; second definition ignored
Creating library ReleaseUMinDependency/CHANEL.lib and object ReleaseUMinDependency/CHANEL.exp
ReleaseUMinDependency/CHANEL.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
原文如下
BUG: ATL Service EXE Doesn't Build in Release Build
Last reviewed: June 16, 1997
Article ID: Q167946
The information in this article applies to:
Microsoft Visual C++, 32-bit Editions, version 5.0
SYMPTOMS
If you try to build a release mode of an ATL service EXE created with ATL COM AppWizard, you get the following the error message:
"error LNK2001: unresolved external symbol _main"
CAUSE
Builds in release mode automatically include the preprocessor directive _ATL_MIN_CRT, while the default ATL service code generated by the wizard requires the CRT library. RESOLUTION
Remove _ATL_MIN_CRT from the list of preprocessor defines to allow CRT startup code to be included.
On the Project menu, click Settings. In the Settings For: drop-down list, choose Multiple Configurations. In the "Select project configuration(s) to modify" dialog box that appears, select the check boxes for all Release versions, and then click OK. Click the C/C++ tab in the Project Settings dialog box, and then choose the General category. Remove _ATL_MIN_CRT from the Preprocessor definitions edit box. Alternatively, you can remove calls to the CRT functions within the generated CServiceModule::LogEvent function.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION