Find the answer to your Linux question:
Results 1 to 3 of 3
hi ., when i was compiling my hello world program i got error...kindly help me ,.... my hello world program is :#include<stdio.h> int main() { printf("hello world\n"); return 0; } ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    31

    When i was compile my program i got errors.


    hi .,
    when i was compiling my hello world program i got error...kindly help me ,....
    my hello world program is :#include<stdio.h>
    int main()
    {
    printf("hello world\n");
    return 0;
    }
    My linux version is --Linux version 2.6.29.4
    /usr/bin/ld: crtbegin.o: No such file: No such file or directory
    collect2: ld returned 1 exit status

    kindly reply .........


    Regards
    Saravanan G

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,159
    1. What is the file name of your program?
    2. What is the command + options you are using to compile it?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Oct 2010
    Posts
    31
    Thank you for your reply.....That file is not there in my files ,i checked that path.... so I install the file using syntax --yum install gcc .now its running

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •