Re: undefined reference to xxx

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

 



On Tue, Jan 8, 2013 at 3:22 PM, horseriver <horserivers@xxxxxxxxx> wrote:
>
>   during my compilation , I find a odd problem ,
>
>   in a .c file , there is no use of a function strcpy , but when link ,
>
>   ld report error :   ec.c:(.text+0x1ade7): undefined reference to `strcpy'
>
>   hot can I resolve this ?

Either 1) provide a definition of strcpy or 2) use the -fno-hosted option.

Ian


[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