Package: gcc-2.95
Hello, I am using Debian version "Woody 3.0r2", and my gcc is a link to gcc.2.95. I have a main and several subprograms in C, which I want to compile with gcc:
gcc subp1.c > subp1.o
gcc subp2.c > subp2.o
...
and then I plan to compile and link the main program:
gcc mainp.c > mainp.o
make main.mak
where "main.mak" loads all subprogram object codes and needed libraries.
But at the very first stpe I get the error message:
/usr/lib/crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
Is there a way out of this predicament? Also, any special suggestions on the
"make" steps?
Thanks.