From: | david(dot)mugnai(at)spacespa(dot)it |
---|---|
To: | pgsql-cygwin(at)postgresql(dot)org |
Subject: | help with postgresql dll |
Date: | 2001-04-27 10:53:23 |
Message-ID: | 20010427125323.A12618@spacespa.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin |
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(at)PgConnection@@QAEHXZ)
dbpostgres.obj : error LNK2001: unresolved external symbol "public: int __thiscall PgDatabase::Tuples(void)" (?Tuples(at)PgDatabase@@QAEHXZ)
dbpostgres.obj : error LNK2001: unresolved external symbol "public: int __thiscall PgConnection::ExecTuplesOk(char const *)" (?ExecTuplesOk(at)PgConnection@@QAEHPBD(at)Z)
dbpostgres.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall PgDatabase::FieldName(int)" (?FieldName(at)PgDatabase@@QAEPBDH(at)Z)
dbpostgres.obj : error LNK2001: unresolved external symbol "public: int __thiscall PgDatabase::Fields(void)" (?Fields(at)PgDatabase@@QAEHXZ)
dbpostgres.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall PgDatabase::GetValue(int,int)" (?GetValue(at)PgDatabase@@QAEPBDHH(at)Z)
dbpostgres.obj : error LNK2001: unresolved external symbol "public: __thiscall PgConnection::PgConnection(char const *)" (??0PgConnection@@QAE(at)PBD@Z)
dbpostgres.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall PgConnection::~PgConnection(void)" (??1PgConnection@@UAE(at)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Kian Parsee | 2001-04-27 14:21:00 | Postgres 7.1 on Win2K |
Previous Message | Jason Tishler | 2001-04-25 13:31:54 | Re: Error INITDB |