I run into the following error from time to time" Expected specifier-qualifier-list before `XYZ` and everytime it takes me a while to work out what caused it. Making sure I don't forget 🙃 It's caused by introducing an import circular dependance where class abc imports class xyz which imports abc - the compiler is then caught in an infinite import loop. When we use #import we are copying that class's code into the importer's class whihc in turn copys it's imports, etc, until we get to the bottom of…
#errors
2 posts with this tag