Re: crt1.o
On Sun, 11 Feb 1996, Joe Kirby wrote:
> What uses crt1.o? Several packages won't build because of errors such as:
crt1.o is from libc5-dev and used for virtual every ELF executable in the
last linking stage.
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x50): undefined reference to `main'
You have to provide the "main" function in your source code. I think the
configuration process has somehow decided to do
gcc foo.c
gcc bar.c
gcc foo.o bar.o -o baz
instead of
gcc foo.c -c
gcc bar.c -c
gcc foo.o bar.o -o baz
Could you show the lines before the error message above?
mfg
Rolf Rossius
Reply to:
- References:
- crt1.o
- From: Joe Kirby <kirby@shellie.rmt.utk.edu>