This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c program cant hello to world !


a small correction - the version installed is 2.96 and not 2.93.
 
thks
sriram
----- Original Message -----
Sent: Monday, May 28, 2001 6:37 PM
Subject: c program cant hello to world !

Hi,
 
I have Redhat 7.0 with gcc 2.93 installed on it. i have written a simple c program, which when compiled says,
 
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
 
when given the -v option, the result is :
 
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__
-D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di38
6 -D__i386 -D__i386__ -D__tune_i386__ t.c /tmp/cctcVSrQ.i
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (cpplib)
 (i386 Linux/ELF)
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1 /tmp/cctcVSrQ.i -quiet -dumpbase t.
c -version -o /tmp/cc4ncMGy.s
GNU C version 2.96 20000731 (Red Hat Linux 7.0) (i386-redhat-linux) compiled by
GNU C version 2.96 20000731 (Red Hat Linux 7.0).
 as -V -Qy -o /tmp/cc3T1e8h.o /tmp/cc4ncMGy.s
GNU assembler version 2.10.90 (i386-redhat-linux) using BFD version 2.10.0.18
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/collect2 -m elf_i386 -dynamic-linker /l
ib/ld-linux.so.2 crt1.o crti.o /usr/lib/gcc-lib/i386-redhat-linux/2.96/crtbegin.
o -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -L/usr/lib/gcc-lib/i386-redhat-linux
/2.96/../../.. /tmp/cc3T1e8h.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i386-redhat-linu
x/2.96/crtend.o crtn.o
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
 
i hope some one has answer for this..
 
Thks and Regards
Sriram

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]