我正在使用MinGw(4.8.1)来编译c ++代码。它工作正常,但后来我安装了pthread包,因为我需要为我的项目进行多线程处理。我面临以下错误:
****构建配置默认为项目MainWithMyMakefile ****
make all g ++ -c -v -std = c ++ 11 -g src / Main.cpp使用内置规范。 COLLECT_GCC = c:\ MinGW \ bin \ g ++。exe目标:mingw32配置: ../gcc-4.8.1/configure --prefix = / mingw --host = mingw32 --build = mingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --enable -lto --enable-libssp --disable-multilib --enable-languages = c,c ++,fortran,objc ,obj-c ++,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gmp = / usr / src / pkg / gmp-5.1.2-1-mingw32-src / bld --with-mpc = / usr / src / pkg / mpc-1.0.1-1-mingw32-src / bld --with-mpfr = --with-system-zlib --with-gnu-as --enable-decimal-float = yes --enable-libgomp --enable-threads --with-libiconv-prefix = / mingw32 --with-libintl- prefix = / mingw --disable-bootstrap LDFLAGS = -s CFLAGS = -D_USE_32BIT_TIME_T线程模型:win32 gcc版本4.8.1(GCC) COLLECT_GCC_OPTIONS =' - c'' - v'' - std = c ++ 11'' - g'' - shared-libgcc' '-mtune = generic''-march = pentiumpro' c:/ mingw / bin /../ libexec / gcc / mingw32 / 4.8.1 / cc1plus.exe -quiet -v -iprefix c:\ mingw \ bin ../ lib / gcc / mingw32 / 4.8.1 / src / Main.cpp -quiet -dumpbase Main.cpp -mtune = generic -march = pentiumpro -auxbase Main -g -std = c ++ 11 -version -o C:\ Users \ HARSH~1.RAN \ AppData \ Local \ Temp \ ccwQeLGD.s make:*** [Main.o] 错误1