Skip site navigation (1) Skip section navigation (2)

help with postgresql dll

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 (view raw or flat)
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.

pgsql-cygwin by date

Next:From: Kian ParseeDate: 2001-04-27 14:21:00
Subject: Postgres 7.1 on Win2K
Previous:From: Jason TishlerDate: 2001-04-25 13:31:54
Subject: Re: Error INITDB

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group