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.......
- 09-01-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 70
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....
- 09-01-2007 #2
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
- 09-01-2007 #3Just 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!!!!!
- 09-01-2007 #4Code:
#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
- 09-02-2007 #5
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.
- 09-02-2007 #6Just 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!!!!!!!!
- 09-02-2007 #7
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
- 09-02-2007 #8Just Joined!
- Join Date
- Sep 2007
- Posts
- 70
ok will do tat tonite
- 09-02-2007 #9Just 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"
- 09-02-2007 #10
Execute this
Output will be something like glibc-devel-x.x.x.xxCode:rpm -qf /usr/lib/crt1.o
x x x are numbers here.
Install that package using yum.
Relace x x x with correct numbers.Code:yum -y install glibc-devel.x.x.x.xx
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote