请教GCC编译不通过 问题。。

软件和网站开发以及相关技术探讨
回复
falineandy
帖子: 30
注册时间: 2007-10-04 1:11
来自: LNU
联系:

请教GCC编译不通过 问题。。

#1

帖子 falineandy » 2007-10-05 13:37

代码: 全选

andy@ubuntu:~/c$ gcc -o hello hello.c
hello.c:1:20: 错误: studio.h:No such file or directory
hello.c: 在函数 ‘main’ 中:
hello.c:4: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
怎么设置阿 已经

代码: 全选

 sudo apt-get install build-essential
过了。。郁闷呀 第一个HELLO WORLD都不让我显示出来。。对嵌入式研究第一部就受挫 :cry:
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#2

帖子 leeaman » 2007-10-05 13:40

hello.c:1:20: 错误: studio.h:No such file or directory
stdio.h

开心,竟然有比我还菜的鸟,我就只会这个程序 :D
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
falineandy
帖子: 30
注册时间: 2007-10-04 1:11
来自: LNU
联系:

#3

帖子 falineandy » 2007-10-05 16:58

呵呵 在WIN下 弄C 习惯。。菜菜 慢慢学习 嘿嘿 :lol:
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#4

帖子 stlxv » 2007-10-05 17:17

falineandy 写了:呵呵 在WIN下 弄C 习惯。。菜菜 慢慢学习 嘿嘿 :lol:
......win下什么时候有studio.h了..........
PHP是最好的语言!不服来战!
头像
drivel
帖子: 1918
注册时间: 2006-07-08 9:21
来自: University of Science and Technology Beijing
联系:

#5

帖子 drivel » 2007-10-05 17:20

leeaman 写了:
hello.c:1:20: 错误: studio.h:No such file or directory
stdio.h

开心,竟然有比我还菜的鸟,我就只会这个程序 :D
额,很有创意。
工作室的头文件
回复