15 Mar 2009

Dev-C++ Error: stray '\161' in program

If you got error like "stray '\161' in program" under Dev-C++ environment, it means you have used SBC case punctuations. It would be all right if you replace them by DBC case ones.

BTW: it's a common error under GCC, especially if you use Asia language in your code.
##CONTINUE##
编译程序老是报stray '\161' in program错误,google了一下,发现是由于全角/半角符号引起,如果你是从别处复制的代码,或者有中文注释,不小心加个中文标点,都会出这个错.重新敲下代码或者全部改成半角就ok了.

这是gcc一个典型报错.

No comments :

Post a Comment