Thread: Building the psqlODBC enhanced branch (Windows)

Building the psqlODBC enhanced branch (Windows)

From
"Dave Page"
Date:
Hi Hiroshi,

I've just started looking at building a test release of the
psqlodbc-enhanced branch. I have the following on my machine:

- OpenSSL 0.98, binary distribution installed in C:\OpenSSL
- PostgreSQL 8.1.3 pgInstaller distribution installed in C:\Program
Files\PostgreSQL\8.1
- Visual Studio 6.0

This machine is the standard setup we use for pgInstaller, pgAdmin and
current psqlODBC builds, so I'm keen to be able to build this branch of
the code with as few changes as possible.

The attached patch contains the changes I made to get a build in this
environment using the command line, however I still got the following
warnings:

        link.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nma03328.
LINK : warning LNK4199: /DELAYLOAD:libpq ignored; no imports found from
libpq
LINK : warning LNK4199: /DELAYLOAD:ssleay32 ignored; no imports found
from ssleay32
   Creating library .\Unicode30\psqlodbc.lib and object
.\Unicode30\psqlodbc.exp
LINK : warning LNK4199: /DELAYLOAD:libpq ignored; no imports found from
libpq
LINK : warning LNK4199: /DELAYLOAD:ssleay32 ignored; no imports found
from ssleay32

Anything to worry about there?

Regards, Dave.

Attachment

Re: Building the psqlODBC enhanced branch (Windows)

From
"Dave Page"
Date:

> -----Original Message-----
> From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
> Sent: 20 February 2006 15:33
> To: Dave Page
> Cc: Hiroshi Saito; psql-odbc@postgresql.org
> Subject: Re: Building the psqlODBC enhanced branch (Windows)
>
>
> Hmm, I'm using the libpq import library whose name is
> libpqdll.lib built
> via win32.mak.
> Is it inconsistent with the libpq libraries built via other ways ?

Yes - iirc, because the VC build of libpq builds a static and dynamic
library, libpqdll.lib being the dynamic one.

With anything we release now, it's good to be fully compatible with
existing builds of PostgreSQL and the pre-built binaries that it's built
around, hence I'm keen to make things work against the binary
distribution of OpenSSL and pgInstaller build of PostgreSQL.

> >however I still got the following
> >warnings:
> >
> >
>
> I'm using VC7 and don't see the warings. Well I seem to have removed
> some words
> another Hiroshi added for VC6 development. OK I've just  put back the
> change.
> Please check it.

Yes, that clears up the warnings.

Regards, Dave.