|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 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 |
| |
| |
| |
| |
| |
| |
linux 编译lpthread
qianshanxue112023-11-09 14:27
相关推荐
Sheffield14 小时前
Docker的跨主机服务与其对应的优缺点Sheffield1 天前
Alpine是什么,为什么是Docker首选?舒一笑2 天前
程序员效率神器:一文掌握 tmux(服务器开发必备工具)Johny_Zhao2 天前
centos7安装部署openclawhaibindev2 天前
在 Windows+WSL2 上部署 OpenClaw AI员工的实践与踩坑NineData2 天前
数据库管理工具NineData,一年进化成为数万+开发者的首选数据库工具?梦想很大很大3 天前
拒绝“盲猜式”调优:在 Go Gin 项目中落地 OpenTelemetry 链路追踪Sinclair3 天前
内网服务器离线安装 Nginx+PHP+MySQL 的方法叶落阁主3 天前
Tailscale 完全指南:从入门到私有 DERP 部署