请教,ubantu如何安装c compiler?
现在装了ubuntu7.10,从一个老外那要来的软件,make时报错,
cc -O2 -c -o swat.o swat.c
> In file included from swat.c:25:
> swat.h:25:19: error: ctype.h: No such file or directory
> swat.h:26:18: error: math.h: No such file or directory
> swat.h:27:19: error: stdio.h: No such file or directory
> In file included from swat.c:25:
> swat.h:87: error: expected specifier-qualifier-list before ‘FILE’
> swat.c: In function ‘main’:
> swat.c:55: error: ‘FILE’ undeclared (first use in this function)
> swat.c:55: error: (Each undeclared identifier is reported only once
> swat.c:55: error: for each function it appears in.)
> swat.c:55: error: ‘fr’ undeclared (first use in this function)
> swat.c:86: warning: incompatible implicit declaration of built-in
> function ‘printf’
> swat.c:134: warning: incompatible implicit declaration of built-in
> function ‘fprintf’
> swat.c:134: error: ‘stderr’ undeclared (first use in this function)
> swat.c:142: error: ‘stdout’ undeclared (first use in this function)
> swat.c:230: warning: incompatible i
mplicit declaration of built-in
> function ‘strcpy’
> swat.c:231: warning: incompatible implicit declaration of built-in
> function ‘strcat’
> swat.c:273: warning: incompatible implicit declaration of built-in
> function ‘printf’
> make: *** Error 1
请教了一下老外,说是c compiler不完全
哪位兄弟有解决办法?
或者其它什么版本的linux好用?
谢谢!! 用那个软件管理器,然后把所有关于gcc的全部选上
Ps: Ubuntu 就挺好,对于linux来讲,版本并不是主要问题 谢谢!已搞定!
sudo apt-get install g++
页:
[1]