最近拿到一个别人的工程,是使用VS.net创建的,而我的机器上只有vs2010,于是用自带的转换工具将它转换成vs2010的工程,转换之前我就很担心,怕转换完后会出问题,但是没有办法,我实在是不想再安一个vs.net了. 转完后果不其然真出了问题,在重新build工程时,报了一大堆错误,其中第一个就是“fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403.…
说了原因,下面是修改方法,就是在stdafx.h文件中修改相关的定义,修改完后的效果应该如下: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later. #define WINVER 0x0501 // Change this to the appropriate value to target Wi…
VS2005转换成VS2010时出现的问题: This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended 解决方法:打开stdafx.h文件修改如下: 注释掉: //#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.//#…
下面是彻底解决方法:在工程的stdafx.h中添加(如有类似语句,需注释掉)#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.#define WINVER 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.#endif #ifndef…
打开你的C++工程,找到里面的stdafx.h文件,然后把下面的红色内容替换成绿色的 参考:http://blog.csdn.net/dongliqiang2006/article/details/5810055 #ifndef WINVER                // 允许使用 Windows 95 和 Windows NT 4 或更高版本的特定功能. #define WINVER 0x0400        //为 Windows98 和 Windows 2000 及更新版本改变为适…
1.停用mysql服务:# /etc/rc.d/init.d/mysqld stop 2.输入命令:# mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 3.登入数据库:# mysql -u root mysql 4.mysql> use mysql; 结果如下: Database changed 5.mysql> UPDATE user SET Password=PASSWORD('newpassword…
caffe c++11编译问题 问题:error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 解决:修改Makefile文件 CXXFLAGS…
今天在一台老式联想服务器上安装centos6.10操作系统,安装完成,重启时,出现报错 error 15, file not found...... 在百度上搜索到进grub编辑,可还是无法解决问题,仍然file not found: 后来我将服务器硬盘格式化了,然后再正常安装系统,结果就能正常启动了,稀里糊涂的就解决了: 到现在还有疑惑,如果有哪位大神路过请解释一下,感激不尽…
Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha8. 原因: SDK 中可能是没有安装ConstraintLayout的支持包   解决办法: 在SDK中安装ConstraintLayout 支持包, Android Studio下的操作: Preferences > Appearance & Behavior > System Settings > Android…
ref from: Android Studio下“Error:Could not find com.android.tools.build:gradle:2.2.1”的解决方法http://blog.csdn.net/klovesq/article/details/45576635 错误: Error:Could not find com.android.tools.build:gradle:2.2.1. Searched in the following locations:    file…