trigraph.c:1:1: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs] 二字符组 不同于三字符组在源文件的任何出现都会被预处理器替换,双字符如果出现在字符串字面值(quoted string)、字符常量、程序注释中将不被替换。双字符组的替换发生在编译器对源程序的tokenization阶段(即识别出关键...
ignored, use -trigraphs to enable [-Wtrigraphs] printf("what??!\n"); 说明在编译时要开启-trigraphs选项 最后结果和预计的一样为what|. 一个容易犯错的例子:printf("Delete file (are you really sure??):");;这里我们期望的是打印出 Delete file (are you really sure??):,最后打印的是Delete...
warning: trigraph ??/ ignored, use -trigraphs to enable 即要使用trigraphs在编译时需要添加上-trigraphs参数。 从wiki上可知这种语法将可能被在新的标准中移除 Trigraphs were proposed for deprecation inC++0x, which was released asC++11.[7]This was opposed byIBM, speaking on behalf of itself and ...
But it’s only in fon/manual_exampleSound.cpp. Because of using -std=g++17 (from which trigraphs were removed) the warnings appear. Are these supposed to be trigraphs at all?Can the warnings be safely ignored or should the option -trigraphs be used?