undefined reference to gettid
-
undefined reference to gettid
#include <unistd.h> #include <sys/syscall.h> #ifdef SYS_gettid pid_t tid = syscall(SYS_gettid); #else #error "SYS_gettid unavailable on this system" #endif
#include <unistd.h> #include <sys/syscall.h> #ifdef SYS_gettid pid_t tid = syscall(SYS_gettid); #else #error "SYS_gettid unavailable on this system" #endif