__GSHandlerCheck链接错误

本文介绍了当使用Visual Studio 2005 SP1进行C++智能设备开发时遇到的编译错误及警告问题。针对这些问题提供了解决方案,包括如何配置项目以避免缓冲区安全检查引发的错误,并关闭链接器警告。
If you're a native C++ smart device developer and recentlydownloaded VS2005 SP1 you may find that some of your existing programsand some of the samples that ship with Windows Mobile SDK will fail tocompile. Even if you're able to make them compile they may issue awarning like "warning LNK 4099: PDB 'libbmt.pdb was not found". This is because VSD has updated the compilers for VS2005 SP1 to beon par with WinCE 6 compilers which included /GS support. So, forprojects that don’t include libc/msvcrt or turn off /GS, you will runinto these errors on pre-WinCE 6 platforms As a workaround you should explicitly include "libcmt.lib" in thelist of additional libs to link against and turn off the linker warning(/nowarn:4099). 在工程设置对话框中 c/c++ -->代码生成 -->缓冲区安全检查 选择 否(/GS-)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值