序号 | 错误原因 | 错误提示 |
把全局静态变量用成了extern | error: multiple storage classes in declaration specifiers | |
函数定义增加了register修饰饰符 | error: function definition declared 'register' | |
auto const register int b;register与auto不能同时修饰一对象 | error: multiple storage classes in declaration specifiers | |
意思语句前缺少= ,;、asm等。常用是忘记加";" | error: expected '=', ',', ';', 'asm' or '__attribute__' before 'p' | |
意思相关的函数只有定义没有申明 | implicit declaration of function 'insertToPGLinked' | |
意思在浮点数之间不能进行异或操作 | invalid operands to binary ^ (have 'float' and 'float') | |
意思是该文件不能引用到SWAP。SWAP或是函数或是宏,一般是程序源文件中找不到出处。 | C:\Windows\TEMP\ccvzpbTt.o:defineDemo.c:(.text+0xa4): undefined reference to `SW AP' | |
这种错误的引起一般是在源程序使用wchar_t 类型,需要给这种类型变量赋给中文值。需要告诉gcc源码就是中文,好让期转换成utf-8格式。 -finput-charset=GB18030 加在gcc指令中 | error:converting to execution character set: Illegal byte sequence |
评论