linux 编译lpthread

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1:undefined reference to `pthread_create' gcc main.c -o test -lpthread |
| [root@hqgao ddserver]# gcc ddserver.c -o ddserver -lpthread [root@hqgao ddserver]# ./ddserver Segmentation fault |
| makefile 简单例子 all: httpd client LIBS = -lpthread #-lsocket httpd: httpd.c gcc -g -W -Wall (LIBS) -o @ client: simpleclient.c gcc -W -Wall -o @ $ clean: rm httpd |
| |
| |
| |
| |
| |
| |

相关推荐
6v6-博客5 小时前
P2P 远程桌面工具|免费开源内网穿透远程软件
运维·服务器
deeper_wind5 小时前
k8s-容器化部署论坛和商城服务(小白的“升级打怪”成长之路)
linux·运维·容器·kubernetes
勇往直前plus6 小时前
VMware centos磁盘容量扩容教程
linux·运维·centos
qq_441996057 小时前
SSH 反向隧道:快速解决服务器网络限制
服务器·网络·ssh
政安晨7 小时前
Ubuntu 服务器无法 ping 通网站域名的问题解决备忘 ——通常与网络配置有关(DNS解析)
linux·运维·服务器·ubuntu·ping·esp32编译服务器·dns域名解析
007php0078 小时前
Jenkins+docker 微服务实现自动化部署安装和部署过程
运维·数据库·git·docker·微服务·自动化·jenkins
路溪非溪8 小时前
嵌入式Linux驱动开发杂项总结
linux·运维·驱动开发
2501_920047038 小时前
nginx-限速-限制并发连接数-限制请求数
运维·nginx
Neolock9 小时前
Linux应急响应一般思路(三)
linux·web安全·应急响应
RainbowJie19 小时前
Gemini CLI 与 MCP 服务器:释放本地工具的强大潜力
java·服务器·spring boot·后端·python·单元测试·maven