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

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

 



"vinod" <vinod.nanjaiah@xxxxxxxxx> 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

[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