I'm having issues with constructing structures. I am using the SFML library, but that doesn't seem to be the issue. This is the code that cause me problems:
1>main.obj : error LNK2001: unresolved external symbol "public: static class sf::Sound main_variables::clock_ticking_1" (?clock_ticking_1@main_variables@@2VSound@sf@@A)
1>main.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderWindow main_variables::application" (?application@main_variables@@2VRenderWindow@sf@@A)
1>main.obj : error LNK2001: unresolved external symbol "public: static int main_variables::seconds" (?seconds@main_variables@@2HA)
I tried looking up this error (LNK2001: unresolved external symbol) on Google, and it seems to be a common issue. However, that didn't help me, and now I am stuck :(
I have fiddled around a bit more with the code I had, and removed the static keyword from the initializations of the 3 variables in the structure main_variables. However, this gives me a SFML related error. I will ask for help on the SFML forum.