gcc linker help

Kanak Nath knath@iname.com
Tue Nov 15 20:51:00 GMT 2005


I've created a small .c code and it has calls to strlen() and printf(). I compiled it with arm-elf-gcc  -mcpu=arm9  -c \example\test.c to generate test.o. Now I wanted to link it with arm-elf-ld test.o c:\gnude\lib\gcc-lib\arm-elf\3.3.1\libgcc.a. I get the following error:

: undefined reference to `strlen'
test.o(.text+0x50): In function `main':
: undefined reference to `printf'

Could anyone help to resolve it.


Kanak Nath

Play 100s of games for FREE! http://games.mail.com/

More information about the Gcc-help mailing list