File not found error for unincluded headers
Solved
General and Desktop
-
I have a c++ driver header file which have the lines
#ifndef Q_OS_WIN
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#endif
When I try to compile this on Windows, it fails to compile and gives file not found error for the i2c.h and i2c-dev.h. But they are not supposed to be included at all since the #ifndef statement should have excluded them. I do not get what is causing this error. -
@ablan said in File not found error for unincluded headers:
Q_OS_WIN
Did you include QtGlobal header file where you're using Q_OS_WIN?