addrecord.c:(.text+0x191): undefined reference to `strmov'

Ian Lance Taylor iant@google.com
Wed Oct 14 14:39:00 GMT 2009


"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



More information about the Gcc-help mailing list