I have installed Qt 5.0.2, also build a new Gui App, and it works fine.
But somehow any external header file is not been found by compiler.
Details:
Project dir structure:
-- [Folder > e:\prdir]
| -- empty.h
| -- [Project folder > test]
|-- main.cpp
|-- mainwindow.h
|-- mainwindow.cpp
|-- test.pro
in mainwindow.h, I just #include “empty.h” and in .pro file a line INCLUDEPATH += e:\prdir
and I recieved
error: e:\test\mainwindow.h:5: error: C1083: Cannot open include file: ‘empty.h’: No such file or directory
If i place empty.h in Project folder it does work.
The autocomplete feature is able to find the empty.h file
This use to work before, but somehow something got wrong which i am not able to understand.
Using:
Windows 8 – 64 bit
VS 2010
I had installed 4.8.2 too with 5.0.1, then uninstalled both and installed 5.0.2.
I think this broke something that i am not able to link to external header files.
any help?
↧