The purpose of the article is to get your code to compile and link when using multiple source and header files. Following those directions doesn't prevent other kinds of problems to show up in your code. If your code even gets to the point where it can run then your problem isn't related to the article.
I've been at this for a day now and no progress. I read the article and I've still not got this other part of the code to work.If it wasn't being recognized it wouldn't even compile. The fact that it does compile means that it is being recognized. Since the problem is a run time error when accessing the Map variable then most likely the problem is that you aren't initializing your object properly. If that isn't enough of a hint to get your program working properly, try producing a minimal, but complete code sample that demonstrates your problem.I appear to have an issue with my Map object not being being recognised even though i've declared it and its within the same class.
That's a C++11 feature: uniform initialization.Why do you have braces in the line:
Map.insert({std::make_pair<int, int>(1, 2), gameObj1}); ?
Thanks. I solved it. It was something to do with dereferencing and not using 'new' to declare my game object.
Sorry for my constant posts. Today has just been a frustrating day for me, much more then usual and I'm sitting here with a headache... I've been at this way too long today. Maybe 14 hours. Brain went to mush several hours ago.
Anyways, you guys have all been so helpful.

Find content
Not Telling