Hi,
I got a source code with these preprocessor directives:
And I have a meaning that the warnings I get is somehow the reason for my program getting some errors about some classes in some different files than my main file.Code:#if Player::race = 0 #include "warrior.h" #elif Player::race = 1 #include "conjurer.h" #elif Player::race = 2 #include "wizard.h" #endif
Anyway, my warnings for the code is:
Can somebody give me a hand with my problem?Code:d:\c++\text_based_game\race.h(9) : warning C4067: unexpected tokens following preprocessor directive - expected a newline d:\c++\text_based_game\race.h(9) : warning C4067: unexpected tokens following preprocessor directive - expected a newline d:\c++\text_based_game\race.h(11) : warning C4067: unexpected tokens following preprocessor directive - expected a newline d:\c++\text_based_game\race.h(11) : warning C4067: unexpected tokens following preprocessor directive - expected a newline d:\c++\text_based_game\race.h(13) : warning C4067: unexpected tokens following preprocessor directive - expected a newline d:\c++\text_based_game\race.h(13) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
Thx in advance.