I am, once again, butting heads with the build process. I’ve been beating my head against the wall for the last hour, and every change I make creates another nonsensical error, telling me include files that absolutely DO exist do not, or that it can’t find an include file that is not even referenced in the class its compiling.
Here is the error I’m getting at the moment:
C:\Users\RayL\AppData\Local\Temp\build4822534246727886184.tmp\BOBTester.cpp -o C:\Users\RayL\AppData\Local\Temp\build4822534246727886184.tmp\BOBTester.cpp.o
In file included from C:\Users\RayL\AppData\Local\Temp\build4822534246727886184.tmp\BOBTester.h:6:0,
C:\Users\RayL\AppData\Local\Temp\build4822534246727886184.tmp\UniTester.h:5:24: fatal error: I2CSCanner.h: No such file or directory
Now, what’s strange about this is that BOBTester.cpp, BOBTester.h and the UniTester.h in the sketch directory do not contain ANY references to I2CScanner.h. But, the UniTester.h in the build directory DOES contain a #include <I2CScanner.h>. Why is it adding that?
This project consists of a small sketch (UniTester.h, UniTester.ino), and a large number of other classes, all in their own .cpp and .h files, all in one project directory. All of these other classes #include UniTester.h, as well as a large number of other local and global libraries, like LiquidCrystalI2C, SoftI2CMaster, Wire, and many, many others. It was all working just fine, until I made a small “improvement” in one of the classes. It’s been all downhill from there…
So, why is I2CScanner.h getting shoved into UniTester.h, and how do I make it NOT do that?
Unfortunately, this project is far too large, and far too many files, to post here, but I’m sure the problems I’m having are due to not adequately understanding the build process, rather than a problem in my code.