make GCC时出错

软件和网站开发以及相关技术探讨
回复
fanjing.89
帖子: 1
注册时间: 2008-04-13 19:07

make GCC时出错

#1

帖子 fanjing.89 » 2008-04-13 19:26

在配置后make GCC出现这个错误,不知道是什么问题阿,我是菜鸟来的,希望各位高手指教阿!!

../../gcc-source-code/gcc-2.7.2.3/cp/decl.c: 在函数 ‘get_unique_name’ 中:
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:1666: 警告: 隐式声明与内建函数 ‘alloca’ 不兼容
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:1666: 警告: 隐式声明与内建函数 ‘strlen’ 不兼容
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c: 在函数 ‘push_namespace’ 中:
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:1734: 警告: 隐式声明与内建函数 ‘alloca’ 不兼容
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c: 在函数 ‘set_nested_typename’ 中:
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:2005: 警告: 隐式声明与内建函数 ‘alloca’ 不兼容
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c: 在函数 ‘duplicate_decls’ 中:
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:2985: 警告: 隐式声明与内建函数 ‘bcopy’ 不兼容
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:3022: 警告: 隐式声明与内建函数 ‘bcopy’ 不兼容
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c: 在函数 ‘push_class_level_binding’ 中:
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:3605: 错误: 自增运算中的左值无效
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c: 在函数 ‘grokdeclarator’ 中:
../../gcc-source-code/gcc-2.7.2.3/cp/decl.c:8760: 警告: 隐式声明与内建函数 ‘bcopy’ 不兼容
make[1]: *** [decl.o] 错误 1
make[1]: Leaving directory `/home/fanjing/Desktop/gcc/gcc2.7.2.3/cp'
make: *** [cc1plus] 错误 2



不胜感激!!!
头像
liupingjing
帖子: 451
注册时间: 2007-11-29 17:31

#2

帖子 liupingjing » 2008-04-14 10:35

加上#include <stdio.h>
或 #include <stdlib.h>试试
头像
liupingjing
帖子: 451
注册时间: 2007-11-29 17:31

#3

帖子 liupingjing » 2008-04-14 10:46

刚才没仔细看
还有个错误,不过中文提示很清楚了,楼主去查查程序吧
回复