c++ - Qt does not find header file -
i have such structure of files:
├── myproject/ │ ├── include │ │ ├── mainwindow.h │ ├── source │ │ ├── main.cpp │ │ ├── myqtprojectfiles │ │ │ ├── myqtproject.pro
myqtproject.pro contains strings:
includepath += $$pwd\..\..\include sources += $$pwd\..\..\source\main.cpp headers += $$pwd\..\..\include\mainwindow.h
but qt produces error : cannot open include file: "mainwindow.h"; no such file or directory
problem solved, deleted old cache files of previous build process. recommended variable usage in case _pro_file_pwd_
Comments
Post a Comment