I'm having a strange problem, gcc don't find the QSql libraries!!
Look my ManipulaBanco.h:
#ifndef MANIPULABANCO_H
#define MANIPULABANCO_H
#include <QMessageBox>
#include <QSqlError>
#include <QSqlDatabase>
#include <QSqlQuery>
class ManipulaBanco{
Q_OBJECT
public:
ManipulaBanco(void);
private:
bool conecta(void);
QSqlDatabase banco;
};
#endif
when I do make:
In file included from main.cpp:3:
bd/ManipulaBanco.h:5:21: error: QSqlError: Can't find this file or directory
bd/ManipulaBanco.h:6:24: error: QSqlDatabase: Can't find this file or directory
bd/ManipulaBanco.h:7:21: error: QSqlQuery: Can't find this file or directory
bd/ManipulaBanco.h:15: error: 'QSqlDatabase' does not name a type
bd/ManipulaBanco.h:9: warning: 'class ManipulaBanco' has virtual functions but non-virtual destructor
make: ** [main.o] Erro 1
You can see that QMessageBox was found but the others didn't!!
How can I resolve this??
Bookmarks