线程,,vs 2010
新学c 语言 在vs2010里创建的工程是win32 控制台,,输入#include<pthread.h>说找不到pthread这个库,,,怎么添加的呢,,该。。。。刚学c的线程 哪位高手给点意见,,谢谢!
[解决办法]
要么在Linux下学pthread,要么在Windows上先安装好pthread win32。
[解决办法]
#ifdef WIN32 _beginthread((void(__cdecl *)(void *))thdA,0,(void *)1);#else pthread_create(&(threads[threadsN++]),NULL,thdA,(void *)1);#endif