ok i ran qmake in the folder of main.cpp then I pressed rebuild in Code::Blocks and it gave me the same error.