Page 1 of 1

CodeLite 5.1 - cannot find <QString>

Posted: Thu Apr 18, 2013 8:56 pm
by mikey
Using CodeLite 5.1 on Ubuntu 12.10:

Created a minimal QTGui app. Built and ran fine.

#include <QApplication>
#include <QButton>

were inserted by the wizard in the main.cpp file - no problem. I added:

#include <QString>

as per QT docs, and pre-processer tells me it can't find QString. I checked the include setting for the project -

../qt4

and

../qt4/qt4GUI

are there correctly. I tried:

#include <qt4/QString>

with different case permutations - all no go.

What's wrong?

Re: CodeLite 5.1 - cannot find <QString>

Posted: Thu Apr 18, 2013 9:05 pm
by eranif
Please show us the build log
Please read this

Eran

Re: CodeLite 5.1 - cannot find <QString>

Posted: Fri Apr 19, 2013 4:27 am
by mikey
Fixed. Needed to add ../qt4/QtCore to include path.