Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
hi,am a Ubuntu 7.04(fiesty fawn) user....there is some problem with the GCC...whenever i compile a program it says "/usr/bin/ctrl.o :No such file found.NO such directory file found"....PLz help me.......
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    70

    Post trouble using GCC

    hi,am a Ubuntu 7.04(fiesty fawn) user....there is some problem with the GCC...whenever i compile a program it says "/usr/bin/ctrl.o :No such file found.NO such directory file found"....PLz help me....

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    We need a bit more info. Which code are you trying to compile? Does it throw any other message? Could you post complete output here?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    70
    hi...devils_casper....its showing the error for watever code i write..... eg
    main()
    {
    printf("Hi world");
    }
    there is no a.out being created!!!!!

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Code:
    #include <stdio.h>
    
    main()
    {
    printf("Hello World");
    return 0;
    }
    Code:
    gcc test.c
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    I want to know who tells people to write C code where main doesn't return anything... I see this a lot for some reason.

  6. #6
    Just Joined!
    Join Date
    Sep 2007
    Posts
    70
    hi likwid and devils_casper....i wrote the same code in my college(Fedora core)which gave the output!!!!so i guess thr is some issue with the system i have...plz help me resolve tat....we can fight later for best coding practices!!!!!!!!

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Could post the command that you executed to compile the code and exact error message here?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Sep 2007
    Posts
    70
    ok will do tat tonite

  9. #9
    Just Joined!
    Join Date
    Sep 2007
    Posts
    70
    hi devils_csper...i executed the code which u had given to me...with return 0.....i got the follwoing thing....
    "arvind@arvind:$ cc test.c
    /usr/bin/ld : crt1.o:No such file:No such file or directory
    collect2:ld returned 1 exit status"

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
     rpm -qf /usr/lib/crt1.o
    Output will be something like glibc-devel-x.x.x.xx
    x x x are numbers here.
    Install that package using yum.
    Code:
    yum -y install glibc-devel.x.x.x.xx
    Relace x x x with correct numbers.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

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