I'm trying to build a project taht uses strsafe.h. This file is included once in that main file, and another time in a file that the main file includes. That is so because both use strsafe.h. But unfortunately when linking the linker says there are more than one definition for each function used (once in the main file, once in the secondary file).
Have you inspected the strsafe.h file? It should be safe for inclusion into multiple c files. This is a microsoft defined header file that comes with the installation of the compiler, I presume?
Are you using your own makefile? This happened to me once because I messed up gcc's syntax and it was compiling and linking every file instead of just compiling each object file.
I fixed it by adding the -c and -o parameters explicitly: