I am starting a large application involving classes and different files.
I have created a player class and set it as a header file so i can use it in my other files without having to "extern" call all the variables,
The class name and the object player have both been defined in the main() function in the first cpp file.
But when i went to create my next cpp file, I included my file that has the player class like this:
[code]#include "player.h"[\code]
and when i went to compile i got 15 linker errors up saying stuff like:
error: 'int health' multiple definiotion - first defined here
I though that if i placed my class in a header file then i could just include it with my other files... what am i doing wrong?