【发布时间】:2016-08-25 20:25:41
【问题描述】:
我已经运行 Eclipse Juno 和 MinGW 4.6.2 很长时间了,但我需要完整的 C++11 支持,所以我升级到 Eclipse Mars 并将 MinGW 4.9.3 安装在不同的目录中。
在 Mars 中,链接任何可执行文件 - 即使在 C++ Hello World 项目中 - 都会导致“C:\MinGW_4_9_4\bin...\ld.exe: cannot find -lpthread.”
4.6.2 目录(用于 Juno)包含 pthread,但 4.9.3 目录(用于 Mars)不包含。
Mars 为什么以及如何尝试链接到 pthread? (我可以关掉它吗?)
【问题讨论】:
标签: eclipse c++11 pthreads mingw