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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Include files for static VC libpq.lib


  • From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
  • To: "Edin Kadribasic" <edink(at)emini(dot)dk>
  • Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: Re: Include files for static VC libpq.lib
  • Date: Sun, 23 Jan 2005 14:06:12 +0100
  • Message-id: <6BCB9D8A16AC4241919521715F4D8BCE4766BE(at)algol(dot)sollentuna(dot)se>

>> >Hi,
>> >
>> >I'm upgrading libpq bundled in PHP win32 distribution. I have
>> >no problem
>> >compiling static libpq.lib using bundled makefiles and 
>msvc++. However
>> >getting the needed include files is bit more difficult. So far
>> >I have been
>> >installing pgsql on a linux box, took its include files and replaced
>> >pg_config.h with the one used for msvc++ build. Is there an
>> >easier way to do
>> >that? Adding some sort of "make install" would be handy as well.
>>
>> If you build with MingW you will have access to more or less 
>everything
>> that the unix builds has. Such as the "make install" command...
>
>Yes, I'm aware of that. However that doesn't change the 
>situation much. I 
>still need to build  VC lib using msvc++ and then make the 
>whole postgresql 
>with mingw. At least linux build/install is faster :) I was 
>looking for "make 
>install" in VC makefile which would make include dir with 
>neccessary .h files 
>in it.

There is no such support in the VC Makefiles. It's only supported in the
MingW build.

FWIW, you can build the VC libs from the DEF file - we do so in the
installer. You just run

LINK /LIB /MACHINE:x86 /def:libpqdll.def /out:libpq.lib /name:libpq.dll

//Magnus



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group