三字符?? /忽略,使用-trigraphs启用 [英] trigraph ??/ ignored, use -trigraphs to enable
问题描述
我的编译器(GCC)是给我这个警告。请帮我理解这意味着什么:
警告:三字符?? /忽略,使用-trigraphs启用
块引用>解决方案您已经意外写的的三字母某处源$ C $ C(编译器的警告,将查明线)。由于三字母被发明来解决,不进入现代系统发挥出了问题,你实际上并不希望三字母
?? /
与字符替换\\
。因此,这个警告可能应该被忽略(你可以告诉编译器中加入
-Wno-三字母
在-Wall 闭嘴code>在命令行中,看到文档)。但它会是很好的展现你的源$ C $ C,所以我们可以肯定的。
My compiler (gcc) is giving me this warning. Please help me to understand what it means:
warning: trigraph ??/ ignored, use -trigraphs to enable
解决方案You have "accidentally" written a trigraph somewhere in your source code (the compiler's warning would pinpoint the line). Since trigraphs were invented to solve a problem that doesn't come into play on modern systems, you don't actually want the trigraph
??/
to be replaced with the character\
.Therefore, this warning should probably be ignored (you can tell the compiler to shut up by adding
-Wno-trigraphs
after-Wall
in your command line; see the docs). But it would be good to show your source code so we can be sure.这篇关于三字符?? /忽略,使用-trigraphs启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!