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 |
| |
| |
| |
| |
| |
| |

相关推荐
落笔画忧愁e3 小时前
扣子Coze飞书多维表插件添加数据记录
java·服务器·飞书
GuokLiu5 小时前
250708-Debian系统安装Edge浏览器并配置最小中文输入法
运维·edge·debian
Two_brushes.6 小时前
【linux 网络】网络基础
linux·网络
Code Warrior6 小时前
【Linux】基础开发工具(3)
linux·服务器
鬼才血脉6 小时前
Linux(centos)安装 MySQL 8
linux·mysql·centos
guygg886 小时前
ubuntu手动编译VTK9.3 Generating qmltypes file 失败
linux·运维·ubuntu
JeffersonZU7 小时前
Linux/Unix 套接字Socket编程(socket基本概念,流程,流式/数据报socket,Unix domain socket示例)
linux·c语言·tcp/ip·udp·unix·gnu
先做个垃圾出来………7 小时前
自动化一次通过率
运维·自动化
Two_brushes.8 小时前
【linux网络】网络编程全流程详解:从套接字基础到 UDP/TCP 通信实战
linux·开发语言·网络·tcp/udp
夕泠爱吃糖8 小时前
Linux中的静态库和动态库
linux·运维·服务器