help with postgresql dll
help with postgresql dll
От:
david.mugnai@spacespa.it
Дата:
Hi to everybody sorry for my english, it is not so good ..... I try to write a program with VC++ that use pq++.dll but the linker give me this error LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in pq++.lib(pq++.dll) dbpostgres.obj : error LNK2001: unresolved external symbol "public: int __thiscall PgConnection::ConnectionBad(void)" (?ConnectionBad@PgConnection@@QAEHXZ) dbpostgres.obj : error LNK2001: unresolved external symbol "public: int __thiscall PgDatabase::Tuples(void)" (?Tuples@PgDatabase@@QAEHXZ) dbpostgres.obj : error LNK2001: unresolved external symbol "public: int __thiscall PgConnection::ExecTuplesOk(char const *)" (?ExecTuplesOk@PgConnection@@QAEHPBD@Z) dbpostgres.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall PgDatabase::FieldName(int)" (?FieldName@PgDatabase@@QAEPBDH@Z) dbpostgres.obj : error LNK2001: unresolved external symbol "public: int __thiscall PgDatabase::Fields(void)" (?Fields@PgDatabase@@QAEHXZ) dbpostgres.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall PgDatabase::GetValue(int,int)" (?GetValue@PgDatabase@@QAEPBDHH@Z) dbpostgres.obj : error LNK2001: unresolved external symbol "public: __thiscall PgConnection::PgConnection(char const *)" (??0PgConnection@@QAE@PBD@Z) dbpostgres.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall PgConnection::~PgConnection(void)" (??1PgConnection@@UAE@XZ) pq++.lib(pq++.dll) : error LNK2001: unresolved external symbolpq++_NULL_THUNK_DATA Debug/dblayer.exe : fatal error LNK1120: 9 unresolved externals Error executing link.exe. I make the pq++.lib file with these command dlltool --output-def pq++.def --dllname pq++ pq++.dll lib /DEF:pq++.def but pq++.lib doesn't works :( Someone can help me? Thanks -- David To err is human...to really foul up requires the root password.