gcc linker help

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

 



Hello,

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.


Regards,

Kanak Nath


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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux