12 2023 档案

蛋疼的mysql_ping()以及MYSQL_OPT_RECONNECT(转)
摘要:From: https://www.felix021.com/blog/read.php?2102 昨天@Zind同学找到我之前的一篇blog(已经修改),里面提到了mysql_ping和MYSQL_OPT_RECONNECT的一些事情。之所以写那篇blog,是因为去年写的一些代码遇到了“2006: 阅读全文

posted @ 2023-12-28 14:17 xihong 阅读(261) 评论(0) 推荐(0) 编辑

mysql5.7 wait_timeout (转)
摘要:参考:https://blog.csdn.net/ivory_town1/article/details/77702357 1.修改参数配置文件 vi /etc/my.cnf [mysqld] wait_timeout = 28800 interactive_timeout = 28800 #增加以 阅读全文

posted @ 2023-12-28 13:39 xihong 阅读(65) 评论(0) 推荐(0) 编辑

std::max、std::min error C2589: “(”:“::”右边的非法标记,error C2059: 语法错误:“::” (转)
摘要:个人采用方案三解决问题。 在VC++种同时包含头文件#include <windows.h>和#include <algorithm>后就会出现无法正常使用std标准库中的min和max模板函数,经过查阅发现这是因为在Windows.h种也有min和max的定义,这样就导致了algorithm中的m 阅读全文

posted @ 2023-12-28 12:07 xihong 阅读(299) 评论(0) 推荐(0) 编辑

E1097 未知特性 “no_init_all“(转)
摘要:在我使用最新(2019.5.12)的VS2019(版本号16.0.3)时,编译器弹出了如标题所示错误,找不到"no_init_all"的attribute。错误源头在winnt.h这一系统头文件中。经过比对,找到了位于Microsoft Visual Studio Developer Communi 阅读全文

posted @ 2023-12-28 11:20 xihong 阅读(752) 评论(0) 推荐(0) 编辑

C++出现“printf/cout不明确”的问题的原因和解决方法(转)
摘要:如果你有幸看到这个博客,那么我猜你应该已经碰上这个问题,而且正急着寻求方法,因此,我先把解决方法用最简单的一句话写出来解决方法为:**将文件中原有的using namespace std;删除后保存cpp文件,再加上using namespace std;保存cpp文件。问题即可解决** 如果根据上 阅读全文

posted @ 2023-12-24 09:59 xihong 阅读(863) 评论(0) 推荐(0) 编辑

Ubuntu升级cmake,可任意切换版本(转)
摘要:https://blog.csdn.net/qq_33175506/article/details/132416845 https://cmake.org/files/v3.22/ 阅读全文

posted @ 2023-12-21 13:54 xihong 阅读(112) 评论(0) 推荐(0) 编辑

两条命令搞定Ubuntu系统安装与配置VNC server实现远程桌面连接(转)
摘要:参照下面博文地址: 1、sudo apt-get update 2、sudo apt install x11vnc 在ubuntu电脑上执行 3、x11vnc -passwd 123456 -display :0 -forever 4、windows端安装好vnc viewer,输入server端i 阅读全文

posted @ 2023-12-20 10:40 xihong 阅读(97) 评论(0) 推荐(0) 编辑

qt打开项目缺少ui_文件,使用手动生成(转)
摘要:打开项目看到,缺少ui_myMainWindow.h文件,它是和myMainWindow.ui相对应的,所以我们需要手动生成对应的ui_文件。 步骤如下:使用uic.exe来生成,如果在系统变量Path中设置了qt的bin目录,那么就可以直接使用uic.exe。使用方法是:在myMainWindow 阅读全文

posted @ 2023-12-19 14:39 xihong 阅读(540) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示