文章分类 -  程序调试问题

1 2 3 4 5 下一页

代码中发现问题唯有跟踪调试
摘要:代码中发现问题唯有跟踪调试 代码中发现问题唯有跟踪调试 代码中发现问题唯有跟踪调试 syslog 输出日志 有些嵌入式设备 单步跟踪实现不了 阅读全文

posted @ 2022-06-29 10:12 lydstory 阅读(19) 评论(0) 推荐(0) 编辑

VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
摘要:https://blog.csdn.net/abcjennifer/article/details/7558508/ 阅读全文

posted @ 2022-04-06 04:47 lydstory 阅读(33) 评论(0) 推荐(0) 编辑

malloc free 地址一旦移动,free就会造成释放错误
摘要: 阅读全文

posted @ 2021-01-28 15:38 lydstory 阅读(113) 评论(0) 推荐(0) 编辑

Makefile g++ 特殊问题
摘要:CC = g++ CC_INCLUDES = -I/usr/include -I/usr/local/include -I. CPPFLAGS = -Wall -O0 -g -fno-default-inline -pipe $(CC_INCLUDES) CPPFLAGS_D = -Wall -g 阅读全文

posted @ 2021-01-21 20:37 lydstory 阅读(235) 评论(0) 推荐(0) 编辑

gdb commands 函数断点
摘要: 阅读全文

posted @ 2021-01-16 17:20 lydstory 阅读(169) 评论(0) 推荐(0) 编辑

段错误strcpy
摘要:// 你必须定义一个 `main()` 函数入口。 #include <stdio.h> #include <string.h> int main(int argc , char ** argv) { char arr[10]; strcpy(arr,argv[1]); return 0; } 这类 阅读全文

posted @ 2021-01-16 14:53 lydstory 阅读(97) 评论(0) 推荐(0) 编辑

htonl ntohl 数字整型网络传输转换
摘要: 阅读全文

posted @ 2020-12-03 18:10 lydstory 阅读(76) 评论(0) 推荐(0) 编辑

printf("%s" char 接收结构体输出(结构体int阻断)
摘要: 阅读全文

posted @ 2020-12-03 17:53 lydstory 阅读(129) 评论(0) 推荐(0) 编辑

just a forward declaration
摘要:1.函数参数逗号写成了分号 http://www.voidcn.com/article/p-eqifbskq-bme.html 阅读全文

posted @ 2020-12-03 11:26 lydstory 阅读(57) 评论(0) 推荐(0) 编辑

gdb target remote
摘要:https://blog.csdn.net/v6543210/article/details/100536849 c 运行 调试 阅读全文

posted @ 2020-11-10 18:53 lydstory 阅读(902) 评论(0) 推荐(0) 编辑

gdb bt
摘要: 阅读全文

posted @ 2020-07-22 14:13 lydstory 阅读(959) 评论(0) 推荐(0) 编辑

gdb set args 设置参数
摘要: 阅读全文

posted @ 2020-07-15 14:47 lydstory 阅读(2803) 评论(0) 推荐(0) 编辑

sprintf 少用
摘要:你知道程序的 问题,在哪里吗? sprintf判断程序类型,如果是%d 它是不判断类型的 当我们做做这样的操作的时候,“添加异常判断”,添加类型判断........ 否则程序是可能出错的 经验论 阅读全文

posted @ 2020-05-12 16:52 lydstory 阅读(91) 评论(0) 推荐(0) 编辑

insertsql = insertsql + szPagenumber + ");";
摘要:insertsql = insertsql + szPagenumber + ");"; // sprintf(pagenum, "%d", szPagenumber); 唉,速度 , 程序的悲剧,就在于此啊 阅读全文

posted @ 2020-05-12 15:10 lydstory 阅读(195) 评论(0) 推荐(0) 编辑

gcc防止冲突
摘要:-Wl,-rpath,$ORIGIN -Wl,-Bsymbolic 阅读全文

posted @ 2020-05-08 14:14 lydstory 阅读(201) 评论(0) 推荐(0) 编辑

qDebug release 终端输出
摘要: 阅读全文

posted @ 2020-05-01 17:07 lydstory 阅读(395) 评论(0) 推荐(0) 编辑

string 强制类型转换
摘要:(string)a; 发送到java tomcat 不识别 -1 返回 阅读全文

posted @ 2020-05-01 15:05 lydstory 阅读(263) 评论(0) 推荐(0) 编辑

牛逼的virtual
摘要:if(Connected()) { Close(); } if(nullptr == dbName) { return false; } if(strlen(dbName) >= MAX_DBNAME) { return false; //添加了virtual 不释放 段错误 不添加 打开数据库一切 阅读全文

posted @ 2020-04-15 14:43 lydstory 阅读(113) 评论(0) 推荐(0) 编辑

make 清理中间文件 不清理可能没有重新编译
摘要:make 清理中间文件 不清理可能没有重新编译 make 清理中间文件 不清理可能没有重新编译 make 清理中间文件 不清理可能没有重新编译 阅读全文

posted @ 2020-04-13 17:49 lydstory 阅读(378) 评论(0) 推荐(0) 编辑

.a 链接到.so cmake 错误
摘要:解决方法: 测试中:https://blog.csdn.net/u010312436/article/details/52486811 意思是:sqlite.a 编译没有添加-fPIC标记 --》待测试 2020041317 -->问题解决 202004131730 注意:有些编译obj-gcc 不 阅读全文

posted @ 2020-04-13 16:56 lydstory 阅读(206) 评论(0) 推荐(0) 编辑

1 2 3 4 5 下一页

导航

点击右上角即可分享
微信分享提示