Empty_Android
Empty_Android
2016-08-27 07:28

C++ while 计算1到10的和

错误信息:

 cd 'D:\C++\workspace\CppApplication_2'
D:\C++\MSYS\bin\make.exe -f Makefile CONF=Debug
"/D/C++/MSYS/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/d/C++/workspace/CppApplication_2'
"/D/C++/MSYS/bin/make.exe"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/cppapplication_2.exe
make.exe[2]: Entering directory `/d/C++/workspace/CppApplication_2'
mkdir -p build/Debug/MinGW-Windows
rm -f "build/Debug/MinGW-Windows/main.o.d"
g++    -c -g -MMD -MP -MF "build/Debug/MinGW-Windows/main.o.d" -o build/Debug/MinGW-Windows/main.o main.cpp
mkdir -p dist/Debug/MinGW-Windows
g++     -o dist/Debug/MinGW-Windows/cppapplication_2 build/Debug/MinGW-Windows/main.o 
d:/c++/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread
collect2.exe: error: ld returned 1 exit status
make.exe[2]: *** [dist/Debug/MinGW-Windows/cppapplication_2.exe] Error 1
make.exe[2]: Leaving directory `/d/C++/workspace/CppApplication_2'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/d/C++/workspace/CppApplication_2'
make.exe": *** [.build-impl] Error 2

构建 FAILED (退出值2, 总时间:  556ms)

图片说明
图片说明

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答