[uClibc]Undefined __libc_start_main
Erik Andersen
andersen at codepoet.org
Mon Nov 19 00:17:14 UTC 2001
On Sun Nov 18, 2001 at 02:22:29PM -0700, Victor Odhner wrote:
> I have built a uClibc compiler on my RedHat 7.1 box, targeted to
> the i386 for debug use. Any time I try to link a program, even
> "hello world", I get this "undefined reference" message:
>
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x1d): undefined reference to `__libc_start_main'
>
> I have tried tricks like "ld -e main", but nothing seems to
> give me a program that starts.
>
> Please advise!
What commands are you trying to use to do the linking?
You could just do a 'make' followed by a 'make install'
and then use /usr/i386-linux-uclibc/usr/bin/i386-uclibc-gcc
to compile things. Or you can do something like
PATH=/usr/i386-linux-uclibc/bin:$PATH make
Either one of those should so the Right Thing(tm),
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list