Today I have installed Qt 4.3.1 (open source) on my windows XP computer. I was trying to compile my first program "hello world" but I am getting the following errors:
hello.cpp:1:24: QApplication: No such file or directory
hello.cpp:2:23: QPushButton: No such file or directory
hello.cpp: In function `int main(int, char**)':
hello.cpp:6: error: `QApplication' undeclared (first use this function)
hello.cpp:6: error: (Each undeclared identifier is reported only once for each f
unction it appears in.)
hello.cpp:6: error: expected `;' before "app"
hello.cpp:8: error: `QPushButton' undeclared (first use this function)
hello.cpp:8: error: expected `;' before "hello"
hello.cpp:9: error: `hello' undeclared (first use this function)
hello.cpp:12: error: `app' undeclared (first use this function)
hello.cpp:13:2: warning: no newline at end of file
mingw32-make: *** [hello] Error 1
I have tried the CONFIG += qt but the problem remains..
I have the latest mingw (5.1.3) installed. I don't know what to do. I have tried almost everything I found in the web but..
Please help me to step into the fascinating Qt world!
Thank's in advance,
Panos
Bookmarks