[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: /lib/libucc.a not found



Hi,

Thank you for your reply.

When I do a static linking of my app, a new 
problem appeared. In "Rules.elinux", I found I 
can do a static linking if I do "make clinux" 
before doing "make". However, some errors are 
displayed as below when I make such a linking:

gcc_cris -mlinux -melf -DCRISMMU -
muclibc=/home/incast/axis/products/tech/devboard/
eroot -O2 -Wall -D__linux__ -DELINUX -Wall -c -o 
hello.o hello.c
gcc_cris -mlinux -melf -DCRISMMU -
muclibc=/home/incast/axis/products/tech/devboard/
eroot -s -static hello.o  -o hello
/usr/local/cris/lib/gcc-lib/cris/2.96/rld-cris: 
warning: cannot find entry symbol _start; 
defaulting to 00080074
/home/incast/axis/products/tech/devboard/eroot/li
b/uccrt0.o(.text+0x76): undefined reference to 
`_main'
hello.o: In function `main':
hello.o(.text+0xc): undefined reference to 
`printf'
collect2: ld returned 1 exit status
make: *** [hello] Error 1

Then I removed "-melf -DCRISMMU". My app is 
compiled and linked successfully using clinux 
target. I ported it into my Axis2420 camera and 
run it, not any output there. It seems stopped.

Any suggestion?

Regards
zhaolei



from NTU, Singapore
--------------------------------------------
Zaobao.com ѵ http://mymail.zaobao.com/