Libpq in VS 2010 - Mailing list pgsql-hackers

From Jeff Shanab
Subject Libpq in VS 2010
Date
Msg-id 615FD77639372542BF647F5EBAA2DBC20B11A522@IL-BOL-EXCH01.smartwire.com
Whole thread Raw
List pgsql-hackers
<div class="WordSection1"><p class="MsoNormal">I needed to talk to the database from an app that builds in Visual
Studio2010 only at the moment. <p class="MsoNormal">The binary that EnterpriseDB provides for windows was built with
VS2005I think and causes the weird error linking of “cannot open Files.obj” (there is no Files.cpp)<p
class="MsoNormal"> <pclass="MsoNormal">I was able to download the source and get just libpq.lib (and the dll) built and
amtesting it in my project, it loads and sends queries to DB.<p class="MsoNormal"> <p class="MsoNormal">I downloaded
sourceand ran the “perl mkvcbuild.pl”<p class="MsoNormal">I opened solution in VS2008 letting it convert project.<p
class="MsoNormal">Iopened in VS2010 and let it convert the VS2008 project.<p class="MsoNormal">Now I added to the
linkerproperties for the libpq project ws2_32.lib,secur32.lib,wldap32.lib and then the libpq.def file<p
class="MsoNormal"> <pclass="MsoNormal">I built just the libpq project and am using the libpq.lib it created.<p
class="MsoNormal"> <pclass="MsoNormal">I hope we get the full build later, I really need to remove a lot of cruft for
anembedded target.</div> 

pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Re: pgbench cpu overhead (was Re: lazy vxid locks, v1)
Next
From: richhguard-monotone@yahoo.co.uk
Date:
Subject: Re: PATCH: CreateComments: use explicit indexing for ``values''