multiple definition of c++ code example
Example: multiple definition c++
you are defining a non-overloaded function more than once (same name and parameter)
in the case you don't, most likely you should declare the
function in a header file and include it, make sure not to #include "file.cpp"
and instead to #include "file.hpp"