CodeLite 5.1 - cannot find <QString>

General questions regarding the usage of CodeLite
mikey
CodeLite Enthusiast
Posts: 24
Joined: Thu Apr 18, 2013 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite 5.1 - cannot find <QString>

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5.1 - cannot find <QString>

Post by eranif »

Please show us the build log
Please read this

Eran
Make sure you have read the HOW TO POST thread
mikey
CodeLite Enthusiast
Posts: 24
Joined: Thu Apr 18, 2013 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5.1 - cannot find <QString>

Post by mikey »

Fixed. Needed to add ../qt4/QtCore to include path.
Post Reply