[VS2010]_[初级]_[VC++ Express 使用WDK的ATL编译出现的问题解决办法]
来源:互联网 发布:js和jsp的区别和联系 编辑:程序博客网 时间:2024/06/03 00:35
场景:
1. 最近切换到vs2010 c++ express, 没办法我这里的专业版最近一启动软件基本就处于卡死的状态,要么就是Debug时卡死的状态,找了很久没解决办法.
2. VS2010专业版是自带ATL库的,但是 express却没带,可以看出微软的小家子气.顺便提下express连Debug时反汇编的功能都去掉了,很恶心,
还有Kernel32.lib这些库的链接文件也不提供,微软这是让我们只能用标准库? 下载Windows SDK 7.1 会自带Kernal32.lib的链接文件,暂时能解决问题.
3. Express连插件都不让装,所以用Express 版本少了很多提升效率的功能,估计也就过度一下.
问题: 链接ATL时出现以下警告,看起来很严重, 不过我这里也参考了作者的说法, 先不理这个提示,看下软件用的情况再说.
1>atlsd.lib(atlcommodule.obj) : warning LNK4078: multiple 'ATL' sections found with different attributes (40301040)
解决办法:
Instructions are very simple: Add to include directories for VC++ Express directories for WTL and ATL included in WDK 7.1.0, and also libraries from WDK. I think this is legal.Warnings are because ATL files from WDK are older that VS2010 files, and define ATL sections differently. In atlbase.h:pragma section("ATL$__a", read, shared)pragma section("ATL$__z", read, shared)pragma section("ATL$__m", read, shared)If you change that to:pragma section("ATL$__a", read)pragma section("ATL$__z", read)pragma section("ATL$__m", read)everything will be OK.If you don't want to modify atlbase.h, you can ignore these warning, I don't think they can cause any real problem. You can also suppress them by adding /ignore:4254 to the linker command line.Unfortunately, WTL cannot do anything to fix this.
参考网址:
http://sourceforge.net/p/wtl/support-requests/2/
0 0
- [VS2010]_[初级]_[VC++ Express 使用WDK的ATL编译出现的问题解决办法]
- [ATL/WTL]_[初级]_[SDI程序关闭的注意事项]
- [ATL/WTL]_[初级]_[常用的界面对象操作]
- [Cocoa]_[初级]_[NSThread的使用]
- VS2010+WDK(7.x)环境下编译WDK驱动程序的时候如果出现下面的错误
- [开发工具]_[VS2010]_[vs2010的一个bug-使用stringstream时出现]
- [ATL/WTL]_[初级]_[关于CEdit不识别WM_KEYDOWN的问题]
- [ATL/WTL]_[初级]_[关于graphics.DrawImage绘图时显示不正常的问题]
- [ATL/WTL]_[初级]_[环境搭建]
- VS2010编译wdk的exe失败
- [项目管理]_[初级]_[TortoiseSVN的使用入门]
- [C++11]_[初级]_[shared_ptr的使用场景]
- [C++11]_[初级]_[unique_ptr的使用场景]
- [C++11]_[初级]_[weak_ptr的使用场景]
- [wxWidgets]_[初级]_[自绘窗口最小化点击任务栏图标还原的办法]
- [ATL/WTL]_[初级]_[Win32实现Cocoa的dispatch_async到主线程的异步消息处理]
- 通过WDK编译驱动出现的错误
- [VS2010]_[初级]_[常用快捷键]
- Qt中使用ActiveX(二)【方法调用和事件处理】
- iOS-tabbar控制从首页内容跳转到第二个Controller
- 常用操作
- 常用mysql命令
- [iOS]时间筛选之<本周、上周、更早>
- [VS2010]_[初级]_[VC++ Express 使用WDK的ATL编译出现的问题解决办法]
- 【Ahoi2005】【BZOJ1968】COMMON 约数研究
- Comet的简单实现
- 使用Xcode和Instrument Leak调试解决IOS内存泄漏问题
- POJ 3264 Balanced Lineup(RMQ)
- 安装 vCenter Server Appliance 修补程序
- C# 中动态调用C++动态链接
- mysql事务
- linux常用命令