使用ubuntu下编译hello程序是出错

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
haiqiang1989
帖子: 5
注册时间: 2010-07-07 14:32

使用ubuntu下编译hello程序是出错

#1

帖子 haiqiang1989 » 2010-07-07 14:39

使用ubuntu下编译hello程序是出错,gcc环境已经装了 下面有hello。c环境 和编译时出错的提示
3.png
3.png (7.81 KiB) 查看 271 次
附件
2.png
haiqiang1989
帖子: 5
注册时间: 2010-07-07 14:32

Re: 使用ubuntu下编译hello程序是出错

#2

帖子 haiqiang1989 » 2010-07-07 14:55

小弟 等解决 :em06
头像
双鱼的契约
帖子: 144
注册时间: 2010-05-31 8:30

Re: 使用ubuntu下编译hello程序是出错

#3

帖子 双鱼的契约 » 2010-07-07 14:58

root帐号
不懂,但出错已指出第4行出错
临渊问水,可得鱼之甘苦。
临渊羡鱼,不如归而结网。
博客地址:http://www.yangting.phpnet.us
头像
懒蜗牛Gentoo
论坛版主
帖子: 7353
注册时间: 2007-03-02 17:36
系统: Linux Mint

Re: 使用ubuntu下编译hello程序是出错

#4

帖子 懒蜗牛Gentoo » 2010-07-07 15:18

请确认引号,括号,分号等,均为英文半角字符
虽然世上没有完美的东西,但这并不影响我们追求完美,因为只有偏执狂才TMD能成功。
10.04新手入门——笨兔兔讲述自己的故事
头像
It's not me
帖子: 748
注册时间: 2009-12-02 12:41

Re: 使用ubuntu下编译hello程序是出错

#5

帖子 It's not me » 2010-07-07 15:23

看间隔,应该是第四行最后那个分号错误
who am I? I wander ...
haiqiang1989
帖子: 5
注册时间: 2010-07-07 14:32

Re: 使用ubuntu下编译hello程序是出错

#6

帖子 haiqiang1989 » 2010-07-07 15:40

楼上的都试了 没用
头像
It's not me
帖子: 748
注册时间: 2009-12-02 12:41

Re: 使用ubuntu下编译hello程序是出错

#7

帖子 It's not me » 2010-07-07 15:44

把代码以plain text形式贴出来
who am I? I wander ...
haiqiang1989
帖子: 5
注册时间: 2010-07-07 14:32

Re: 使用ubuntu下编译hello程序是出错

#8

帖子 haiqiang1989 » 2010-07-07 16:27

谢谢各位 已解决 。。。是键盘我设了哥USA死键 现在改回来了
CRAZY_PALADIN
帖子: 302
注册时间: 2009-07-04 16:18

Re: 使用ubuntu下编译hello程序是出错

#9

帖子 CRAZY_PALADIN » 2010-07-07 16:31

:em06 刷了一遍LZ就解决了啊
到底怎么解决的?还是标点的问题么
话说,LZ没用void main(),我很欣慰
Freedom is the power to decide what your computer does, and the only way to have this freedom is to know what your computer is
doing. Freedom is a computer that is without secrets, one where everything can be known if you care enough to find out.
haiqiang1989
帖子: 5
注册时间: 2010-07-07 14:32

Re: 使用ubuntu下编译hello程序是出错

#10

帖子 haiqiang1989 » 2010-07-07 16:50

呵呵 是标点问题 确切的说是键盘没设好
回复