摘要:
问题原因: pthread 库不是 Linux 系统默认的库,连接时需要使用静态库 libpthread.a. 所以在使用pthread_create()创建线程时,需要链接该库。 1. 终端:问题解决:在编译中要加 -pthread参数 2. qt的cmake配置: 可以修改CMakeLists. 阅读全文
posted @ 2016-09-09 11:09
jiu~
阅读(13409)
评论(0)
推荐(0)
摘要:
那句话的意思是从 void* 到 int 的转换丢失精度,相信看到解释有些人就明白了, 此问题只会出现在X64位的Linux上,因为在64位的机器上指针占用8个字节,int 占用四个字节,所以才会出现这样的问题, 解决方法: (long)ptr == -1 就好了 阅读全文
posted @ 2016-09-09 11:03
jiu~
阅读(8603)
评论(1)
推荐(1)
摘要:
undefined reference to typeinfo - C++ error message There are some compiler and loader error messages that shout obviously as to their cause, but ther 阅读全文
posted @ 2016-09-09 09:25
jiu~
阅读(1056)
评论(0)
推荐(0)

浙公网安备 33010602011771号