PDA

View Full Version : QApplication & QPushButton not found



briahn06
8th April 2006, 02:20
I just installed QT. I ran the -configure from C:/QT/4.1.2 and I believe that the qmake compiled correctly. However, when I try to run gcc -c main.cpp, this comes up, it says that QApplication and QPushButton were not found. Any thoughts?

dimitri
8th April 2006, 09:46
Does this happen while building Qt or while building your own program after having built Qt successfully? What is the exact error message? Which OS and exact version of Qt is this?

jacek
8th April 2006, 14:14
when I try to run gcc -c main.cpp, this comes up, it says that QApplication and QPushButton were not found.
Use qmake to generate a Makefile for your project and then compile it using that file.

wysota
9th April 2006, 18:10
Gcc doesn't like C++ programs very much :) Try g++ instead (using qmake as Jacek suggested should do that for you, as you need some paths to be set which qmake sets for you).