Re: [ADMIN] problem compiling c-functions

2002-12-11 Thread Oliver Elphick
On Tue, 2002-12-10 at 14:44, Aravind Babu Guntha wrote: > i am trying to compile the below c-program.but iam getting the errors as > > /usr/lib/crt1.o(.text+0x18): In function `_start': > : undefined reference to `main' > collect2: ld returned 1 exit status You need to show us the command line yo

[ADMIN] problem compiling c-functions

2002-12-11 Thread Aravind Babu Guntha
i am trying to compile the below c-program.but iam getting the errors as /usr/lib/crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status #include #include /* required for atoi */ int main() { char c[10]; int sum = 0; FILE *file;