Hello Everyone,

I am creating a GUI with Qt and I have to add external .cpp and .h file to the project. To be specific "FeaturesTracking.cpp" and "FeaturesTracking.h" as you can see below:


QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = untitled
TEMPLATE = app


SOURCES += main.cpp\
mainpcb.cpp\
FeaturesTracking.cpp

HEADERS += mainpcb.h\
FeaturesTracking.h



I added both the files inside project file, But when I build, I am getting an error "-1: Error:No rule to make target `FeauresTracking.cpp', needed by `FeauresTracking.o,stop"

As suggested in other threads, I tried deleting the output directory and did build again. But my fortune, it didn't work.


Can anyone suggest me a solution for this problem?


thanks in advance!!!

Jakr1387