This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference to xxx


On Tue, Jan 8, 2013 at 3:22 PM, horseriver <horserivers@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]