Compiling pgsql C/C++ interfaces on Win not using Cygwin

From: Tomáš Vondra <vondra(at)tesmail(dot)cz>
To: pgsql-general(at)postgresql(dot)org
Subject: Compiling pgsql C/C++ interfaces on Win not using Cygwin
Date: 2002-08-30 14:22:00
Message-ID: 13110195940.20020830162200@tesmail.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello everybody,
is it possible to compile postgres C/C++ interfaces (use libpq or
libpq++ in a client application) on Windows not using Cygwin?

I've just tried to compile some examples from 7.2.1 using MS Visual
C++ 6, but I got lot of "uresolved external symbol" errors when
linking, for example:

testlibpq2.obj : error LNK2001: unresolved external symbol _PQfinish
testlibpq2.obj : error LNK2001: unresolved external symbol _PQnotifies
testlibpq2.obj : error LNK2001: unresolved external symbol _PQclear
testlibpq2.obj : error LNK2001: unresolved external symbol _PQresultStatus
testlibpq2.obj : error LNK2001: unresolved external symbol _PQexec
testlibpq2.obj : error LNK2001: unresolved external symbol _PQerrorMessage
testlibpq2.obj : error LNK2001: unresolved external symbol _PQstatus
testlibpq2.obj : error LNK2001: unresolved external symbol _PQsetdbLogin

I think it means some important libraries are missing (at least I
think it means this).

I don't wan't to compile all the server, just the part necessarry
to use in a client app. I don't want to use ODBC, I'd like to use
native access to database. If there's such a way?

Tomas

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2002-08-30 14:51:20 Re: [GENERAL] Max Shared Memory
Previous Message ara howard 2002-08-30 14:15:08 timetravel