strcat
is a C library function. See man strcat
or POSIX (or here fo windows) or in string.h
(POSIX).
So the symbol strcat
is used in the standard C libray (LIBCD here) which is linked against the program automagically during the link phase, where the error you show occurs.
The error informs you that the symbol strcat
as defined by the object file test16src.o
as created by compiling your sources already exists in the standard library (LIBCD) linked to test16src.o
to create the final executable.
The get around this symbol name clash use a different name for your implementation, like for example my_strcat()
.