CodeBlock編译boost thread程序
来源:互联网 发布:nginx 全局 header 编辑:程序博客网 时间:2024/06/08 18:30
如果出现:
/usr/lib/libpthread.a(pthread_create.o)||In function `pthread_create':|
(.text+0xa2f)||undefined reference to `_dl_stack_flags'|
/usr/lib/libpthread.a(pthread_create.o)||In function `pthread_create':|
(.text+0xbe5)||undefined reference to `_dl_stack_flags'|
/usr/lib/libpthread.a(ptw-pause.o)||In function `__pause_nocancel':|
(.text+0x18)||undefined reference to `__syscall_error'|
/usr/lib/libpthread.a(ptw-pause.o)||In function `__pause_nocancel':|
解决发方法:
CODEBLOCKS 链接器设置项中添加libpthread.a,查找到该文件在/usr/lib
命令行编译中要加 -lpthread参数
gcc thread.c -o thread -lpthread
thread.c为你些的源文件,不要忘了加上头文件#include<pthread.h>
----------------------------------------------
如果出现
/usr/lib/libpthread.a(pthread_create.o): In function `allocate_stack':
/build/buildd/glibc-2.6.1/build-tree/glibc-2.6.1/nptl/allocatestack.c:411: undefined reference to `_dl_stack_flags'
/build/buildd/glibc-2.6.1/build-tree/glibc-2.6.1/nptl/allocatestack.c:547: undefined reference to `_dl_stack_flags'
CODEBLOCKS 链接器设置项中添加libc.a,查找到该文件在/usr/lib
- CodeBlock編译boost thread程序
- win7 codeblock在调用boost::thread遇到的错误——解决办法
- BOOST THREAD
- boost-thread
- boost::thread
- Boost Thread
- boost - thread
- Boost Thread
- boost::thread
- boost::thread
- boost thread
- boost::thread
- boost::thread
- boost::thread
- boost::thread
- Boost.Thread
- 基于Boost::Thread库的多线程网络爬虫程序
- codeblock
- 《Linux内核修炼之道》精华分享与讨论(13)——驱动开发三件宝:spec、datasheet与内核源码
- FormIE.cs
- BI入门经典
- Linux下如何查看系统启动时间和运行时间
- Zen Cart后台订单中显示产品图片
- CodeBlock編译boost thread程序
- smartphone List View 使用日志(转载)
- 制作绿色MyEclipseO(∩_∩)O~
- MYSQL语句
- 隐藏和显示按钮控件。
- fedora12 GUI root 登陆方法
- 关于快速提高网站排名的26步
- [Note]Spring MVC、hibernate validator和i18n(一)
- 饮水思源