Linux C programming
Posted: 9/19/1999 10:28:26 PMBy: Comfortably Anonymous
Times Read: 2,689
Likes: 0 Dislikes: 0
Topic: Linux
Hopefully a simple question here:
Am trying to do the simple Hello World program with gcc. I put in the standard
main()
{
printf("Hello, World\n:);
}
and then type
gcc hello.c
It starts to compile, and then I get
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
I am too new to Linux to figure out why this is happening. Does anyone have any clues for me?
TIA!
Am trying to do the simple Hello World program with gcc. I put in the standard
main()
{
printf("Hello, World\n:);
}
and then type
gcc hello.c
It starts to compile, and then I get
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
I am too new to Linux to figure out why this is happening. Does anyone have any clues for me?
TIA!
Rating: (You must be logged in to vote)