編譯毛病error: stray ‘\343’in program的處理辦法。本站提示廣大學習愛好者:(編譯毛病error: stray ‘\343’in program的處理辦法)文章只能為提供參考,不一定能成為您想要的結果。以下是編譯毛病error: stray ‘\343’in program的處理辦法正文
成績:
從網上拷貝了一段代碼,粘貼到本身寫的法式strcat_compare.c中,然後編譯gcc -o strcat_compare strcat_compare.c;
湧現毛病以下:
avid@ubuntu:~/wrk/tmp$ gcc -o strcat_compare strcat_compare.c
strcat_compare.c: In function ‘main':
strcat_compare.c:28:1: error: stray ‘\343' in program
strcat_compare.c:28:1: error: stray ‘\200' in program
strcat_compare.c:28:1: error: stray ‘\200' in program
strcat_compare.c:28:1: error: stray ‘\343' in program
strcat_compare.c:28:1: error: stray ‘\200' in program
strcat_compare.c:28:1: error: stray ‘\200' in program
strcat_compare.c:30:1: error: stray ‘\343' in program
strcat_compare.c:30:1: error: stray ‘\200' in program
strcat_compare.c:30:1: error: stray ‘\200' in program
strcat_compare.c:30:1: error: stray ‘\343' in program
strcat_compare.c:30:1: error: stray ‘\200' in program
strcat_compare.c:30:1: error: stray ‘\200' in program
strcat_compare.c:32:1: error: stray ‘\343' in program
strcat_compare.c:32:1: error: stray ‘\200' in program
strcat_compare.c:32:1: error: stray ‘\200' in program
strcat_compare.c:32:1: error: stray ‘\343' in program
strcat_compare.c:32:1: error: stray ‘\200' in program
strcat_compare.c:32:1: error: stray ‘\200' in program
david@ubuntu:~/wrk/tmp$
運轉情況:ubuntu 11.10;
處理方法:
1. 放狗搜,說能夠法式自己的語法沒有成績,然則,失足行中包括不被辨認的字符,好比空格的格局纰謬;
2. 將法式中失足行後面的空格刪除,從新拔出空格或tab鍵,從新編譯,毛病消逝。
ok,成績處理。