I made a few changes to my project and it now has two "bass class undefined" errors (for the same class, in the attached picture). I believe, from researching this online, that the problem is that I have circular references. However, I don't know how to remove it. To start, I would need to know what order my project is compiled in. Is there a file list that Visual Studio provides? I'm pretty sure it all starts at App.cpp, then App.h but then what's the next file? How does VS choose which CPP file comes next? Is it alphabetical? If there are 3 header files in a file, will it immediately do all of those headers next? I only have one header in each CPP file (the H file by the same name) but the headers may have 2 or 3.
Here's a screenshot of my project with the problematic class showing.
screen.gif 25.74KB 0 downloads
Thank you for any help!
(By the way, I read that in other situations forward declaration is the way to go but that it doesn't work with base classes.)