I've got this "multiple Definitions" Error and don't know who to fix it.
header.h
#ifndef HEADER_H
#definde HEADER_H
enum Gamestate{
MENU,
PLAY,
PAUSE,
GAMEOVER
};
Gamestate GAMESTATE = MENU;
#endif
main.cpp
#include "header.h"
switch(GAMESTATE){...}
If I put the Gamestate GAMESTATE = MENU; in the header.cpp main.cpp doesn't know the variable. If I compile it this way I get the multiple Def . Error.