0

I have a C library called Open SAE J1939 and I included it into my QT project. It worked.

When I open Application_Layer.h in QT Designer and start to compile

enter image description here

Then I get an error that my QT compiler do not find the .h files. Some of them, the compiler finds.

So the only option for me is to change from this:

#include "../../ISO_11783/ISO_11783_Enums/Enum_Auxiliary_And_General_Purpose_Valves.h"

To project absolute path:

#include "code/tools/opensaej1939/ISO_11783/ISO_11783_Enums/Enum_Auxiliary_And_General_Purpose_Valves.h"

Notice that not all ../../ cause issues.

enter image description here

Question:

The QT IDE seems to find the .h files by using ../../, but not the compiler. Is there a way to tell QT IDE that ../../ is actually code/tools/opensaej1939?

Why does this occurs?

DanM
  • 1,910
  • 3
  • 22
  • 37
  • I think, it relates not only to the Qt Designer. The `Application_Layer.h` is the header-file, in turn. That is, it may be `#include`'d too. For example, see [here](https://stackoverflow.com/questions/597318/what-are-the-benefits-of-a-relative-path-such-as-include-header-h-for-a-hea), please. – Serge Roussak Feb 16 '22 at 15:03

0 Answers0