linux_thread_learn
来源:互联网 发布:手机淘宝首页红包 编辑:程序博客网 时间:2024/04/26 06:15
由于是Linux新手,学习多线程时候,编写的第一个线程 程序出现
undefined reference to 'pthread_create'
问题原因:
pthread 库不是 Linux 系统默认的库,连接时需要使用库libpthread.so,所以在使用pthread_create()创建线程。需要链接该库。
undefined reference to 'pthread_create'
问题原因:
pthread 库不是 Linux 系统默认的库,连接时需要使用库libpthread.so,所以在使用pthread_create()创建线程。需要链接该库。
在编译中要加 -lpthread参数
gcc -g -o my_thread_create my_thread_create.c -lpthread
- linux_thread_learn
- Eclipse插件:Eclipse Color Theme
- 破坏HelloWorld
- 5个让人激动的Java项目
- android 监听系统新安装程序的广播
- hdoj 4198 Quick out of the Harbour
- linux_thread_learn
- <iostream>he<iostream.h>的区别
- android与mina问题续
- 4张图告诉你为什么Instagram值10亿美金
- 网络传输协议概述——第一讲:传输协议概述
- 从个人网站到淘宝网 仰观Java时代淘宝的技术发展(1)
- div嵌套table居中
- 画一个渐变色球,用内部类实现监听两个button
- sqlserver清空缓存