直接安装完Redhat Linux 9之后的gcc/gdb是有问题的, 你先下载gcc3.3.1和gdb6.0,安装一下再说.
另外我个人认为Redhat Linux 7.3不错,我在上面写了大量程序也没有发现gcc/gdb的问题,转到9.0就出错,也郁闷了一段时间!后来升级gcc/gdb之后就好了.
谢谢!但是我还是不会亚
段错误 (core dumped)
[root@localhost study]# ls
core.3260 core.3398 linux.c linux.c~ linux.o
[root@localhost study]# gdb linux.o core.3398
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Core was generated by `./linux.o'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x0804852c in main ()