Linux Ubuntu运行线程程序出现undefined reference to ‘pthread_create’和undefined reference to ‘pthread_join’错误. 编写好线程代码,进行编译 gcc xiancheng.c -o xiancheng 出现下面提示 linux@ubuntu64-vm:~/workdir$ gcc xiancheng.c -o xiancheng /tmp/ccOCxLrd.o: In function `main': xianc