C:体系结构x86_64的未定义符号

jar*_*ryd 2 c pthreads

我调用函数phtread_kill(gpsNavigationThread, 0)并发现以下错误

架构x86_64的未定义符号:

"_phtread_kill", referenced from:
  _startgpswatchdog in ccXXNhjy.o
ld: symbol(s) not found for architecture x86_64
Run Code Online (Sandbox Code Playgroud)

#include <pthread.h>不知道问题是什么.

我链接如下

gcc gps_nav.c dijk.c serial.c parser.c nav_corelogic.c -I/usr/include/libxml2 -lxml2 -lm -lpthread -o logic
Run Code Online (Sandbox Code Playgroud)

我也#include signal.h但不确定是否有用于链接它的库.

kar*_*lip 9

它的

pthread_kill(gpsNavigationThread, 0)
Run Code Online (Sandbox Code Playgroud)

不:

phtread_kill(gpsNavigationThread, 0)
Run Code Online (Sandbox Code Playgroud)