g++ cannot find include files (qt3)

Posted by Allan on Ask Ubuntu See other posts from Ask Ubuntu or by Allan
Published on 2012-07-08T14:50:09Z Indexed on 2012/07/08 15:22 UTC
Read the original article Hit count: 334

Filed under:
|
|
allan@allan-VirtualBox:~/blackjack_for_the_hopelessly_luckless$ make
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o advicewindow.o advicewindow.cpp
advicewindow.cpp:32:19: fatal error: QWidget: No such file or directory
compilation terminated.
make: *** [advicewindow.o] Error 1
allan@allan-VirtualBox:~/blackjack_for_the_hopelessly_luckless$ 

qt3 was installed using apt-get.

Header files are located in /usr/include/qt3/

Is there a g++ config file or something I need to update?

I'm new to compiling from source and not sure what to do.

Makefile was created using Qmake from project file.

Files in include directory are all lower case, should I change the code in advicewindow.cpp to qwidget.h?

Any help appreciated. Thanks.

© Ask Ubuntu or respective owner

Related posts about compiling

Related posts about qt