Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

I'm unable to compile my first programme it says "/usr/local/qt4/include/QtCore/qstring.h:54:20: fatal error: string: No such file or directory"

$
0
0
Hello i’m new to qt i’m just rying to compile an example code but it show error here is my code #include <QtGui/QApplication> #include <QtGui/QWidget>     int main(int argc, char *argv[]) {     QApplication app(argc, argv);       QWidget window;       window.resize(250, 150);     window.setWindowTitle("Simple example");     window.show();       return app.exec(); } HERE IS THE ERROR In file included from /usr/local/qt4/include/QtCore/qobject.h:48:0,                  from /usr/local/qt4/include/QtCore/qcoreapplication.h:45,                  from /usr/local/qt4/include/QtGui/qapplication.h:45,                  from /usr/local/qt4/include/QtGui/QApplication:1,                  from n_0.c:1: /usr/local/qt4/include/QtCore/qstring.h:54:20: fatal error: string: No such file or directory  #  include <string>                     ^ compilation terminated. make: *** [n_0.o] Error 1 THIS ERROR IS QUITE BIG BUT I PASTED only the essential part needed to solve my problem here

Viewing all articles
Browse latest Browse all 2113

Trending Articles