|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 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
相关推荐
jiayong235 分钟前
Memory 写入、检索与纠错机制:让 Agent 记住,也让它忘对汪汪大队u6 分钟前
从 Docker Compose 到 Kubernetes:物联网管理系统迁移实战(3)—— 两个运维坑小赵不会秃头7 分钟前
数据结构Day 06:线性结构、库操作及 Makefile 完整学习笔记雨田大大7 分钟前
Windows11下IDEA运行后端时,端口被占用的解决方法IKun-bug10 分钟前
CentOS 7 安装 Claude Code 指南上海云盾-小余14 分钟前
服务器入侵应急处置:痕迹清理、漏洞封堵与事后加固全流程kdxiaojie17 分钟前
U-Boot分析【学习笔记】(8)风曦Kisaki20 分钟前
# Linux运维Day02:LNMP架构部署、动静分离原理、Nginx地址重写、systemd服务管理Shadow(⊙o⊙)21 分钟前
Linux进程地址空间——钻入Linux内核架构性剖析 硬核手搓!大明者省21 分钟前
乌邦托服务器系统www不同文件夹bird、infra建立隔离的虚拟环境