[uClibc] `__uClibc_start_main' problem
David Meggy
dmeggy at techsol.ca
Wed Oct 20 16:06:21 UTC 2004
Hi
On Wed, 2004-10-20 at 05:34, Shu-Liang Lee wrote:
> CFLAG = ... -L/usr/local/armeb/lib -lpthread -lstdc++ -ldl -static ...
Is this a C or C++ application. A C application doesn't need stdc++ and
C++ will link it in automatically.
> build static link application and add complier flag "-static"
>
> I got something wrong, but dynamic link is ok!, why?
Do you want to start by posting the command line you typed to get this
error.
> /usr/local/armeb/lib/libc.a(__uClibc_main.o)(.text+0x17c): In function
> `__uClibc_start_main':
> : undefined reference to `main'
> collect2: ld returned 1 exit status
> make: ***
> [/home/shuliang/workdir/wifiphone/app_prj/wifiphone/linux/prod/phone]
> Error 1
> [root at ShuLiang linux]#
--
~~~~~~~~~~~~~~~~~~~~~~~~
David Meggy
Engineering
Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
www.techsol.ca
eMail: dmeggy at techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~
More information about the uClibc
mailing list