Eclipse MinGW C ++找不到-lpthread [英] Eclipse MinGW C++ cannot find -lpthread

查看:190
本文介绍了Eclipse MinGW C ++找不到-lpthread的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试安装Eclipse来制作C ++程序。



我编译预制的默认hello world程序时遇到了问题。



控制台显示此错误:


c:/ mingw / ../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe:找不到-lpthread


$



有关如何修复此问题的任何建议?



b $ b

解决方案

只需运行并打开MinGW安装管理器,它应该预先安装MinGW,在左面板上选择All Packages右侧面板,搜索 mingw32-pthreads-w32 包并安装它们。



重新启动Eclipse,重建项目并运行它。它现在应该工作。


I am currently trying to install Eclipse for making C++ programs.

I've run into an issue when compiling the premade default hello world program.

The console shows this error:

c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread

I am not using the library in my program at all.

Any ideas on how to fix this?

解决方案

Just run and open MinGW Installation Manager, which should be pre-installed with MinGW, select "All Packages" on the left panel, and on the right panel, search for "mingw32-pthreads-w32" packages and install them.

Restart Eclipse, rebuild the project and run it. It should now work.

这篇关于Eclipse MinGW C ++找不到-lpthread的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆