I'm trying to make a physics-ish, thingy, where I imported something from a different program I made, but this time tried putting it in it's own class:
code:
http://pastebin.com/EfYbBKmg
With this code I get the error:
[path to program]\Physics3\include\Factor.h|52|multiple definition of `Send(Factor, bool)'|
obj\Debug\src\Factor.o:[path to program]\Physics3\include\Factor.h|52|first defined here|
for every function using Factor.
If I place the factors inside the class, the errors disappears, but then i have to write this: [Factor variable].[command], like nullFactor.Send(nullFactor);
So my questions are:
1: Why does it say there are multiple definitions (rather than some other error)?
2: How can I make it behave the same as if I had the code pasted into the main file?
I'm using code-blocks, and a different class in the same folder works fine