I've been trying to compile a helper class into a program. After way more time than I want to admit, I discovered that my files compile if I use the file name with an underscore where the period should be. It doesn't compile if I just drop the .h? Is that a requirement? The code looks like:
#ifndef ds18b20Handler
#define ds18b20Handler
#ifndef ds18b20Handler_H
#define ds18b20Handler_H
The first code display all sorts of errors. The second compiles just fine. What is up with that?
Yes, it is the same as my class name. But, now I'm really confused. I changed my code back and it still compiles. There must have been another error somewhere masquerading as the #ifndef issue.