我想用ISO c ++ 98构建我的c ++项目,但是当我构建时,我在控制台中有这个:
信息:内部构建器用于构建 g ++ -std = c ++ 98 -O0 -g3 -Wall -c -fmessage-length = 0 -o" src \ ProvaISO98.o" " .. \ SRC \ ProvaISO98.cpp" 在d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ bits \ postypes.h:40:0中包含的文件中, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ iosfwd:40, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ ios:38, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ ostream:38, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ iostream:39, 来自.. \ src \ ProvaISO98.cpp:9: d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ cwchar:164:11:错误:' :: vfwscanf'尚未宣布 using :: vfwscanf; ^ ~~~~~~~ d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ cwchar:170:11:错误:' :: vswscanf'尚未宣布 using :: vswscanf; ^ ~~~~~~~ d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ cwchar:174:11:错误:' :: vwscanf'尚未宣布 using :: vwscanf; ^ ~~~~~~ d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ cwchar:191:11:错误:' :: wcstof'尚未宣布 using :: wcstof; ^ ~~~~~ 在d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ bits \ locale_facets.h:39:0中包含的文件中, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ bits \ basic_ios.h:37, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ ios:44, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ ostream:38, 来自d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ iostream:39, 来自.. \ src \ ProvaISO98.cpp:9: d:\ programmi \ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ cwctype:89:11:错误:' :: iswblank'尚未宣布 using :: iswblank;
使用ISO c ++ 11我没有问题。也许我必须在-std = gnu ++ 98中更改选项-std = c ++ 98,但我不知道如何做到这一点。