当我在netbeans中编译cpp代码时,请帮助我为什么会说“g++.exe: unrecognized option '-static-libstdc++'
”?
我的构建输出如下。
“/ C / MinGW / msys / 1.0 / bin / make.exe”-f nbproject / Makefile-Debug.mk QMAKE = SUBPROJECTS = .clean-conf
make.exe [1]:输入目录/f/Cpp Projects/StdCpp Projects/Hello'
rm -f -r build/Debug
rm -f dist/Debug/MinGW_TDM-Windows/hello.exe
make.exe[1]: Leaving directory
/ f / Cpp Projects / StdCpp Projects / Hello'
CLEAN SUCCESSFUL(总时间:1s)
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/f/Cpp Projects/StdCpp Projects/Hello'
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_TDM-Windows/hello.exe
make.exe[2]: Entering directory `/f/Cpp Projects/StdCpp Projects/Hello'
mkdir -p build/Debug/MinGW_TDM-Windows
rm -f build/Debug/MinGW_TDM-Windows/main.o.d
g++ -c -g -MMD -MP -MF build/Debug/MinGW_TDM-Windows/main.o.d -o build/Debug/MinGW_TDM-Windows/main.o main.cpp
mkdir -p dist/Debug/MinGW_TDM-Windows
g++ -o dist/Debug/MinGW_TDM-Windows/hello build/Debug/MinGW_TDM-Windows/main.o -static-libgcc -static-libstdc++
g++.exe: unrecognized option '-static-libstdc++'
make.exe[2]: Leaving directory `/f/Cpp Projects/StdCpp Projects/Hello'
make.exe[1]: Leaving directory `/f/Cpp Projects/StdCpp Projects/Hello'
可执行文件运行正常,但那条消息是什么?请帮助我理解,因为我正在学习cpp。
谢谢大家。