View Light

Linux C programming

Hopefully a simple question here:

Am trying to do the simple Hello World program with gcc. I put in the standard

  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?


Rating: (You must be logged in to vote)
- RE: Linux C programming [Read 1235]
Comfortably Anonymous
4/14/2004 3:14:07 PM
0 Dislikes: 0
This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information go to: . If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner.