What does this clang++ error message mean, and why am I getting it? I can\'t seem to find anything on the internet about it...
clang: warning: treating \'
Inspire from @JoachimPileborg. The actually meaning of this error message tells is:
You're compiling an C header file via a CXX compiler. It DOES NOT mean you CAN NOT compile the header files. you CAN compile the header file if you choose the right compiler for the right files. In simple words:
clang with *.h works
clang with *.hpp not works
clang++ with *.h not works
clang++ with *.hpp works
So to fix the issue about compiling the header files, for example the pre-compile headers, just change the suffix from .h to .hpp will do the trick.
You should not compile the header files, only the source files.