Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, April 2007
Re: qt-win-3.3.4+postgresql plugin=strange compiler errors


Message 1 in thread

Hello again!

> It works. Thanks!

I've tried it again with win32-msvc.net compiler and it produces this output:

qsql_psql.obj : error LNK2019: unresolved external symbol
_PQerrorMessage referenced in function "class QSqlError __cdecl
qMakeError(class QString const &,int,class QPSQLPrivate const *)"
(?qMakeError@@YA?AVQSqlError@@ABVQString@@HPBVQPSQLPrivate@@@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQclear
referenced in function "protected: void __thiscall
QPSQLResult::cleanup(void)" (?cleanup@QPSQLResult@@IAEXXZ)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQntuples
referenced in function "protected: virtual bool __thiscall
QPSQLResult::fetchLast(void)" (?fetchLast@QPSQLResult@@MAE_NXZ)
qsql_psql.obj : error LNK2019: unresolved external symbol _lo_read
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _lo_close
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _lo_tell
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _lo_lseek
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _lo_open
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQgetisnull
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQgetvalue
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQftype
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQnfields
referenced in function "protected: virtual class QVariant __thiscall
QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol
_PQresultStatus referenced in function "protected: virtual bool
__thiscall QPSQLResult::reset(class QString const &)"
(?reset@QPSQLResult@@MAE_NABVQString@@@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQexec
referenced in function "protected: virtual bool __thiscall
QPSQLResult::reset(class QString const &)"
(?reset@QPSQLResult@@MAE_NABVQString@@@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQcmdTuples
referenced in function "protected: virtual int __thiscall
QPSQLResult::numRowsAffected(void)"
(?numRowsAffected@QPSQLResult@@MAEHXZ)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQstatus
referenced in function "public: bool __thiscall
QPSQLDriver::open(class QString const &,class QString const &,class
QString const &,class QString const &,int,class QString const &)"
(?open@QPSQLDriver@@QAE_NABVQString@@000H0@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQconnectdb
referenced in function "public: bool __thiscall
QPSQLDriver::open(class QString const &,class QString const &,class
QString const &,class QString const &,int,class QString const &)"
(?open@QPSQLDriver@@QAE_NABVQString@@000H0@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQfinish
referenced in function "public: virtual void __thiscall
QPSQLDriver::close(void)" (?close@QPSQLDriver@@UAEXXZ)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQfname
referenced in function "public: virtual class QSqlRecord __thiscall
QPSQLDriver::record(class QSqlQuery const &)const "
(?record@QPSQLDriver@@UBE?AVQSqlRecord@@ABVQSqlQuery@@@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQfmod
referenced in function "public: virtual class QSqlRecordInfo
__thiscall QPSQLDriver::recordInfo(class QSqlQuery const &)const "
(?recordInfo@QPSQLDriver@@UBE?AVQSqlRecordInfo@@ABVQSqlQuery@@@Z)
qsql_psql.obj : error LNK2019: unresolved external symbol _PQfsize
referenced in function "public: virtual class QSqlRecordInfo
__thiscall QPSQLDriver::recordInfo(class QSqlQuery const &)const "
(?recordInfo@QPSQLDriver@@UBE?AVQSqlRecordInfo@@ABVQSqlQuery@@@Z)
..\..\..\sqldrivers\qsqlpsql.dll : fatal error LNK1120: 21 unresolved externals

where win32-mingw compiles plugin clearly.

P.S. Postgres doesn't provide anly libpq.lib but provide libpq.a
insted. Mingw linker links it fine but microsoft's one produces driver
wich has no refrences to libpq.dll and causes app crush on load.

--
 [ signature omitted ]