Linux下"undefined reference to ‘pthread_create’"问题解决

实验环境 Centos 7.0, gcc 4.8.5web 问题 在运行一个多线程的c文件时候报了错: 多线程 #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> pthread_mutex_t mutex=PTHREAD_MUTEX_INITIALIZER; pthread_con
相关文章
相关标签/搜索