
警告
林兴南
世事不强求,快乐永长存
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
espidf vscode 安装出错ERROR_INVALID_PIP
解决链接:https://www.cnblogs.com/xiaohuzaixue/p/17558731.html。注意 不要使用win11的右键打开终端,在文件管理器上方输入cmd打开终端才有用。原创 2023-08-24 12:51:11 · 923 阅读 · 0 评论 -
qt在子线程中启用定时器后无法关闭
这两句会在我删除我的对象的时候出现udpChat = new UdpServer();threadUdp = new QThread(this);udpChat->moveToThread(threadUdp);threadUdp->start();delete udpChat;QObject::killTimer: Timers cannot be stopped from another threadQObject::~QObject: Timers cannot be原创 2020-10-22 17:32:54 · 2378 阅读 · 1 评论 -
undefined reference to `LessThan::operator()(int) const
跟着书上代码打,结果报错搞了半天才搜到问题所在。重载运算符的运算符函数的定义最好和用到的重载运算符的地方或函数要放在一个文件里否则编译器报错说undefined reference to `LessThan::operator()(int) const’来源:https://blog.youkuaiyun.com/weixin_45910408/article/details/106043905...原创 2020-07-05 14:23:24 · 419 阅读 · 0 评论 -
QT使用多线程报错,QObject: Cannot create children for a parent that is in a different thread.
看了几篇文章都没看懂https://blog.youkuaiyun.com/qq_24890953/article/details/55880043https://www.cnblogs.com/findumars/p/9361993.html报错信息QObject: Cannot create children for a parent that is in a different thread.(Parent is QSerialPort(0x32a5c10), parent’s thread is Q原创 2020-05-23 21:49:40 · 3865 阅读 · 2 评论 -
(编译后的报错/警告记录)implicit declaration of function ‘memset’
一步到位,不看流程memset第一个参数是void * 类型,我用的是char类型1.使用强制转换2.include <string.h>警告使用memset后警告 implicit declaration of function ‘memset’ [-Wimplicit-function-declaration原因memset()函数原型是extern void *m...原创 2019-04-12 21:47:37 · 8139 阅读 · 0 评论 -
(编译后的报错/警告记录)简单的内核模块编译不通过
解决makefile改成Makefile问题来源仿照网上写了个简单的内核模块,发现make老是编译不过报错make -C /usr/src/linux-headers-4.10.0-28-generic SUBDIRS=/home/lin/codeblock/03_skull modulesmake[1]: Entering directory '/usr/src/linux-head...原创 2019-04-17 20:28:19 · 822 阅读 · 0 评论 -
(编译后的报错/警告记录)linux/module.h: 没有那个文件或目录/linux/module.h: No such file or directory
(转自,侵删)https://www.cnblogs.com/zhangjy6/p/5462644.html缺少linux kernel 头文件sudo apt-get install linux-headers-$(uname -r)其中uname -r是显示系统信息要在Ubuntu中安装整个Linux内核源代码sudo apt-get install linux-source一...转载 2019-04-17 20:45:22 · 29023 阅读 · 2 评论 -
QT错误:ui_xxx.h: 找不到 no such file or directory
解决方法在pro里添加了QT += widgets原创 2019-10-08 16:02:51 · 3515 阅读 · 2 评论