[建议] GCC 新手入门

软件和网站开发以及相关技术探讨
回复
gy001
帖子: 10
注册时间: 2010-10-29 10:13

Re: [建议] GCC 新手入门

#211

帖子 gy001 » 2010-10-31 23:48

完全看不懂阿…… :em20
Becks_cf
帖子: 4
注册时间: 2010-10-16 14:18

Re: [建议] GCC 新手入门

#212

帖子 Becks_cf » 2010-11-07 17:58

谢谢,学习中
whitine
帖子: 1
注册时间: 2010-11-07 20:02

Re: [建议] GCC 新手入门

#213

帖子 whitine » 2010-11-07 20:28

不错,这种概念一定要在一开始就搞清楚了
Becks_cf
帖子: 4
注册时间: 2010-10-16 14:18

Re: [建议] GCC 新手入门

#214

帖子 Becks_cf » 2010-11-09 18:56

不错 正需要呢````````````
gjx372127136
帖子: 2
注册时间: 2010-11-09 13:33

Re: [建议] GCC 新手入门

#215

帖子 gjx372127136 » 2010-11-11 19:50

很好 顶
huiwei0704
帖子: 8
注册时间: 2010-09-18 0:12

Re: [建议] GCC 新手入门

#216

帖子 huiwei0704 » 2010-11-13 10:19

:em02 :em02
iamkris
帖子: 26
注册时间: 2010-03-15 23:05

Re: [建议] GCC 新手入门

#217

帖子 iamkris » 2010-11-15 18:14

谢谢啊 正在学习
musashi
帖子: 5
注册时间: 2010-10-21 13:12

Re: [建议] GCC 新手入门

#218

帖子 musashi » 2010-11-20 13:07

发现用gcc编译hello.c的时候没反应,可是故意将hello.c里面的代码写错,却又有提示警告。gcc是装上了的。
改了一下hello.c的权限再编译,还是没用。
请问到底是哪里出问题了?谢谢。
myfifi
帖子: 75
注册时间: 2007-10-18 14:15
联系:

Re: [建议] GCC 新手入门

#219

帖子 myfifi » 2010-11-20 13:54

执行:
gcc hello.c -o hello


没反应表示编译成功,编译成功后当前目录会生成目标文件:hello

执行

./hello

即可。
头像
yagently
帖子: 12
注册时间: 2010-11-19 16:32

Re: [建议] GCC 新手入门

#220

帖子 yagently » 2010-11-20 19:24

新手。 :em06 顶贴
头像
Michael_yan
帖子: 150
注册时间: 2010-11-17 0:03
来自: Bangalore, india.

Re: [建议] GCC 新手入门

#221

帖子 Michael_yan » 2010-11-30 13:40

写得不错,加油。 :em11
吃的苦中苦,方为人上人!
头像
outhacker
帖子: 22
注册时间: 2010-11-04 19:46

Re: [建议] GCC 新手入门

#222

帖子 outhacker » 2010-12-14 22:33

感谢下楼主咯,对新手很有帮助,反正对我很有帮助。
真相只有一个
头像
momo-erika
帖子: 22
注册时间: 2010-12-20 12:10
系统: ubuntu,centos,bsd

Re: [建议] GCC 新手入门

#223

帖子 momo-erika » 2010-12-24 0:51

gcc -c file.c -o file.o
gcc -o file file.o
./file

g++ -c file.cpp -o file.o
g++ -o file file.o
./file

-i /usr/include/......
-l name.lst

命令基本上和nasm差不多,以下贴几个nasm最常用的
nasm -f elf file.asm file.o
nasm -f bin file.asm file.bin 甚至file.xbe (xbox360的应用程序格式)
nasm -f coff file.asm file.o 通用格式
nasm --win32 file.asm file.obj 甚至是win32下的中间文件

nasm就是连接麻烦
sunny8705
帖子: 5
注册时间: 2010-12-12 19:22

Re: [建议] GCC 新手入门

#224

帖子 sunny8705 » 2010-12-25 20:05

:em01 Thanks a lot! LZ has led me into a new world of GCC!
zln57
帖子: 1
注册时间: 2011-01-18 0:47

Re: [建议] GCC 新手入门

#225

帖子 zln57 » 2011-01-18 0:49

不错,相当强悍,很给力的帖子
回复