Im having a problem with my linking constantly with getting double the
intialize items then i requested , but thou i did use comma guides and pragma once....
Im having a problem with my linking constantly with getting double the
intialize items then i requested , but thou i did use comma guides and pragma once....
You've got initialisations inside header files, like
bool GAMESTARTED=false; //used by NewBlock()
In the header, you should have
extern bool GAMESTARTED;
In exactly ONE .cpp file, you should have
bool GAMESTARTED=false; //used by NewBlock()
In header files,
- structs and classes
- extern data
- const data (as you have it now)
- function prototypes
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.