PDA

View Full Version : WinSeven,QSQL plugin,error



Fastman
9th May 2009, 21:49
with options:


configure -debug-and-release -direct3d -plugin-sql-mysql -plugin-sql-odbc -plugin-sql-psql -qt-libpng -qt-libtiff -qt-libjpeg -phonon -webkit -qt-style-windowsvista -qt-style-windowsxp -platform win32-msvc2005
nmake
nmake clean
pause


Code:


db = QSqlDatabase::addDatabase("QPSQL");
db.setHostName(cHost);
db.setDatabaseName(cDatabase);
db.setUserName(cUser);
db.setPassword(cPassword);
bool ok = db.open();


As a result, we get an error: