摘要:
dmesg | grep tty cat /proc/tty/driver/serial 阅读全文
摘要:
backtrace(简写为bt命令查看函数调用的栈帧: nfo(简写为i)查看函数中局部变量的值: i locals 查看函数当前局部变量的值用frame(简写为f)选择1号栈帧然 frame 1 可以利用finish命令让程序一直运行到从当前函数返回为止 continue(简写为c)命令运行到程序 阅读全文
摘要:
vasprintf pthread_getspecific pthread_once pthread_key_delete thread_setspecific pthread_key_create strdup realloc 阅读全文
摘要:
xpy@ubuntu:~/kj/mxml$ ./a.out./a.out: error while loading shared libraries: libmxml.so.1: cannot open shared object file: No such file or directory 解决 阅读全文
摘要:
INT_MAX UINT_MAX ATTRIBUTE_UNUSED 阅读全文
摘要:
xml.h:97:8: error: variable ‘xmlEntityAmp’ has initializer but incomplete type struct xmlEntity xmlEntityAmp = { 定义变量的时候首先看一下,变量在之前是否声明 阅读全文
摘要:
__attribute__ 可以设置函数属性(Function Attribute )、变量属性(Variable Attribute )和类型属性(Type Attribute ) aligned: struct S { short b[3];}__attribute__ ((aligned (2 阅读全文
摘要:
__strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:3131 ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No such fi 阅读全文
摘要:
添加 -lpthread CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/tools/boost/includeexport CPLUS_INCLUDE_PATH LIBRARY_PATH=$LIBRARY_PATH:/tools/boost/libexport LI 阅读全文
摘要:
QByteArray baData; QString str = QString(baData); // 反过来转换; QByteArray by1 = str.toLatin1(); QByteArray by2 = str.toLocal8Bit(); 阅读全文