Alexpo
December 3rd, 2007, 08:21 AM
Hi,
After installing Ubuntu to my laptop which is a dual boot vth XP I was trying gcc is working or not.
When I tried to compile a simple porogram naming test.c placed inmy home directory..its gives two warnings
1) incompatible implicit declartion of built in function printf()
2) incompatible implicit declartion of built in function exit()
ussr/bin/ld: crtl.o : No such file or directory
collect2: ld returned 1 exit status
here is content of my test.c file
#include <stdio.h>
int main()
{
printf("hello");
exit(1);
}
What are the things i am missing ?
Thanks for ur time,
Alexpo
After installing Ubuntu to my laptop which is a dual boot vth XP I was trying gcc is working or not.
When I tried to compile a simple porogram naming test.c placed inmy home directory..its gives two warnings
1) incompatible implicit declartion of built in function printf()
2) incompatible implicit declartion of built in function exit()
ussr/bin/ld: crtl.o : No such file or directory
collect2: ld returned 1 exit status
here is content of my test.c file
#include <stdio.h>
int main()
{
printf("hello");
exit(1);
}
What are the things i am missing ?
Thanks for ur time,
Alexpo