2017-10-09 45 views

回答

1

插入以下的代码

#ifndef _MACH_PORT_T 
#define _MACH_PORT_T 
#include <sys/_types.h> /* __darwin_mach_port_t */ 
typedef __darwin_mach_port_t mach_port_t; 
#include <pthread.h> 
mach_port_t pthread_mach_thread_np(pthread_t); 
#endif /* _MACH_PORT_T */ 

行到文件:

/库/开发商/ CommandLineTools的/ usr /包括/ C++/V1/__ threading_support

这个问题被讨论in this thread