首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

gcc与arm-linux-gcc编译的有关问题?

2012-02-03 
gcc与arm-linux-gcc编译的问题???环境RH9.0,gcc3.2,arm-linux-gcc2.95.3编译以下程序gcc编译很顺利完成,但

gcc与arm-linux-gcc编译的问题???
环境   RH9.0,gcc   3.2,   arm-linux-gcc   2.95.3
编译以下程序gcc编译很顺利完成,但arm-linux-gcc   报错:

com1.c:   In   function   `set_speed ':
com1.c:147:   parse   error   before   `int '
com1.c:149:   `speed_arr '   undeclared   (first   use   in   this   function)
com1.c:149:   (Each   undeclared   identifier   is   reported   only   once
com1.c:149:   for   each   function   it   appears   in.)
com1.c:151:   `name_arr '   undeclared   (first   use   in   this   function)

具体源代码见:
http://community.csdn.net/Expert/topic/5397/5397837.xml?temp=.5967371

[解决办法]
源码打不开
应该是arm-linux-gcc 没装好吧,要不版本太低

热点排行