Error with multiple definitions of function
Here is a highly simplified but hopefully relevant view of what happens when you build your code in C++. C++ splits the load of generating machine executable code in following different phases – Preprocessing – This is where any macros – #defines etc you might be using get expanded. Compiling – Each cpp file along … Read more