1

g++.exe: unrecognized option '-static-libstdc++'cpp コードを netbeans でコンパイルすると、 「 」と表示されるのはなぜですか?

私のビルド出力は次のとおりです。

"/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 に入ります/こんにちは'

クリーン成功 (合計時間: 1 秒)

"/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を学んでいるので、理解してください。

皆さん、ありがとうございました。

4

0 に答える 0