|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 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
相关推荐
deng-c-f15 分钟前
Linux C/C++ 学习日记(29):IO密集型与CPU密集型、CPU的调度与线程切换ximy133542 分钟前
AI服务器工作之整机部件(CPU+内存)weixin_4211334144 分钟前
bisheng 的 MCP服务器添加 或 系统集成AKAMAI2 小时前
安全风暴的绝地反击 :从告警地狱到智能防护报错小能手3 小时前
linux学习笔记(43)网络编程——HTTPS (补充)报错小能手3 小时前
linux学习笔记(45)git详解hkNaruto3 小时前
【DevOps】基于Nexus部署内网pypi代理镜像仓库操作手册ximy13353 小时前
AI服务器工作之线材的接口介绍leo__5203 小时前
skynet.start 的作用详细解析ximy13353 小时前
AI服务器工作之ubuntu系统下的驱动安装