|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 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
相关推荐
少妇的美梦15 小时前
logstash教程chen94516 小时前
k8s集群部署vector日志采集器chen94516 小时前
aws ec2部署harbor,使用s3存储轻松Ai享生活20 小时前
5 节课深入学习Linux Cgroupschristine-rr21 小时前
linux常用命令(4)——压缩命令三坛海会大神55521 小时前
LVS与Keepalived详解(二)LVS负载均衡实现实操東雪蓮☆21 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群qq_2642208921 小时前
LVS负载均衡群集和LVS+Keepalived群集乌萨奇也要立志学C++21 小时前
【Linux】进程概念(二):进程查看与 fork 初探雨落Liy21 小时前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南