Windows下安装MinGW,编译c/c++时出现cannot find -lpthread解决办法

因为Mingw下没有带pthread库,因此在eclipse中设置多线程动态连接库,也无论用。须要本身下载,
ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-8-0-release.exe
解开pthreads-w32-2-8-0-release.exe,把Pre- built.2中的libpthreadGC2.a更名为libpthread.a复制到c:\mingw\lib目录,
pthread.h复制到c: \mingw\include目录便可。
原文:http://bbs.csdn.net/topics/392011726?page=1多线程

相关文章
相关标签/搜索