日期:2014-05-16  浏览次数:20582 次

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 没装好吧,要不版本太低