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

I needed to talk to the database from an app that builds in Visual Studio 2010 only at the moment.

The binary that EnterpriseDB provides for windows was built with VS2005 I think and causes the weird error linking of “cannot open Files.obj” (there is no Files.cpp)

 

I was able to download the source and get just libpq.lib (and the dll) built and am testing it in my project, it loads and sends queries to DB.

 

I downloaded source and ran the “perl mkvcbuild.pl”

I opened solution in VS2008 letting it convert project.

I opened in VS2010 and let it convert the VS2008 project.

Now I added to the linker properties for the libpq project ws2_32.lib,secur32.lib,wldap32.lib and then the libpq.def file

 

I built just the libpq project and am using the libpq.lib it created.

 

I hope we get the full build later, I really need to remove a lot of cruft for an embedded target.

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''