0
我目前解析的gcc
錯誤日誌就像解析GCC錯誤日誌
main.c:5:1: warning: data definition has no type or storage class [enabled by default]
main.c:8:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
main.c in function 'TryAdddition()'
main.c:24:1: warning: data definition has no type or storage class [enabled by default]
main.c:24:10: warning: data definition has no type or storage class [enabled by default]
5,8,24,24都曾經發生完全錯誤或警告的行號。 我需要用數字+ 10 替換這些數字,例如:15,18,34,34
。
但不是每一行都是錯誤或警告行。
這個問題似乎是題外話,因爲它是在這裏交叉貼:http://unix.stackexchange.com/questions/36949/addition-與-SID –