This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: addrecord.c:(.text+0x191): undefined reference to `strmov'
- From: Ian Lance Taylor <iant at google dot com>
- To: "vinod" <vinod dot nanjaiah at gmail dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 14 Oct 2009 06:30:27 -0700
- Subject: Re: addrecord.c:(.text+0x191): undefined reference to `strmov'
- References: <4ad560c8.86c3f10a.24d1.3a9d@mx.google.com>
"vinod" <vinod.nanjaiah@gmail.com> writes:
> When I compile my code :
> root@acer:~# gcc -o addrecord $(mysql_config --cflags) addrecord.c
> $(mysql_config --libs)
> addrecord.c: In function 'main':
> addrecord.c:48: warning: incompatible implicit declaration of built-in
> function 'exit'
> addrecord.c:56: warning: incompatible implicit declaration of built-in
> function 'exit'
> /tmp/ccS06Hax.o: In function `main':
> addrecord.c:(.text+0x191): undefined reference to `strmov'
> collect2: ld returned 1 exit status
> but it's didn't output createtable exe , what's happening ?
Your code calls the function strmov, but strmov is not defined
anywhere.
Ian