eclipse报错:mkl_memory.c:(.text+0xc2e): undefined reference to pthread_getspecific' mkl_memory.c:(.text+0x16d3): undefined reference to
pthread_key_create’
…
解决方法:1.c++linker中的command中添加-pthread -lrt
2…cpp文件中添加头文件<pthread.h>(补充:经后续实践,发现这一步不进行也可)
疑惑:有时候直接在c++linker中添加pthread就可以解决,不知为何这次不行。