I have a log file class that outputs data to a logfile from a program. Well, I have two source files in a project I want to use this log class in. I have a header that is included by both source files. It gives me some a link error saying it was already defined in one of the source files. I was using extern too. I have tried many things, but none work. How do I make it so that I can use the class in both source files?
Thanks!
BTW, I am using MSVC++ if that matters.