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: addrecord.c:(.text+0x191): undefined reference to `strmov'


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]