安装完Qt Add-in 打开VS2013的时候出现标题错误。QTDIR 需要设置成Qt安装目录下的vc,这个vc目录下包含include,lib,bin等文件夹。或者是在Qt Option里面设置Qt的版本路径references:http://stackoverflow.com/question...
分类:
数据库 时间:
2015-05-09 01:15:19
阅读次数:
591
#includeclass A{ const int a; int b;};void main(){ A obja;}编译出现如下错误:error C2512: 'A' : no appropriate default constructor available;如果将const去...
分类:
其他好文 时间:
2015-05-08 23:28:05
阅读次数:
177
出错内容:configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no
常见解决办法:
编辑/etc/ld.so.conf
根据系统,加入文件/etc/ld.so.conf,然后执行ldconfig,使其重新加载一次;
有时候,如果自己的libm...
分类:
Web程序 时间:
2015-05-08 22:11:57
阅读次数:
185
#运行用户
user www-data;
#启动进程,通常设置成和cpu的数量相等
worker_processes 1;
#全局错误日志及PID文件
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
#工作模式及连接数上限...
分类:
其他好文 时间:
2015-05-08 22:11:25
阅读次数:
139
抛出问题:
先附上书本中的例题程序代码
#include
int main(){
int ival;
while (std::cin >> ival, !std::cin.eof()){
if (std::cin.bad())
throw std::runtime_error("IO stream corrupted");
if (std::cin.fail()){...
分类:
编程语言 时间:
2015-05-08 22:04:45
阅读次数:
193
遇到Error loading MySQLdb module: No module named MySQLdb
最容易想到的做法是#sudo pip install MySQLdb
但是实际是这样的sudo pip install python-mysqldb
如果会出现如下提示’EnvironmentError: mysql_config not found’,这是一个依赖问题...
分类:
数据库 时间:
2015-05-08 20:24:24
阅读次数:
199
1、定义class类,最后需要分号。2、头文件引用避免重复,需要使用#ifndef #define #endif否则错误信息:error: conflicting declaration3、编译需要包含所有的cpp文件否则错误信息:undefined reference to4、
分类:
编程语言 时间:
2015-05-08 20:00:23
阅读次数:
126
公司使用腾讯云数据库,今天在从库上面查询相关数据时候,显示没有任何记录,登录后showslavestatus\G查看到状态中报1032错误,这里把相关主从同步故障总结一下。1、在master上删除一条记录,在slave上找不到。Last_SQL_Error.CouldnotexecuteDelete_rowseventontable….Error_..
分类:
其他好文 时间:
2015-05-08 18:27:06
阅读次数:
233
插入语句中含有中文出现“ERROR1366(HY000):Incorrectstringvalue......”错误。解决方法:设置编码setnamesgbk;
分类:
其他好文 时间:
2015-05-08 18:24:05
阅读次数:
103