fatal error LNK1169: one or more multiply defined symbols found in game programming

The two int variables are defined in the header file. This means that every source file which includes the header will contain their definition (header inclusion is purely textual). The of course leads to multiple definition errors. You have several options to fix this. Make the variables static (static int WIDTH = 1024;). They will … Read more