Re: Home dir changes have broken MSVC builds

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Home dir changes have broken MSVC builds
Date: 2005-01-09 14:32:45
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE476533@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>Recent changes to interfaces/libpg/fe-connect.c have broken
>MSVC builds,
>which I am reliably informed are definitely still required - at least
>some uses of libpq.dll made with gcc apparently cause the resulting
>builds or applications to blow up.

Can you get some more specifics on that? We know it was a fact with
early betas because of the conflicting exports, but I was under the
impression that these issues were all fixed by now.
(not saying the MSVC build shouldn't work, just that the gcc should work
too...)

>The trouble seems to come from these 2 lines:
>
>+ #define _WIN32_IE 0x0400
>+ #include <shlobj.h>
>
>First, on MSVC, _WIN32_IE is already defined at that point. If you get
>around that then processing the include file causes errors.

Interesting - mingw was supposed to use compatible headers, I thought
:-)
Can you tru moving the #define up to the top of the file and see if that
fixes things? So it's pulled before *any* windows include file. (My msvc
has completely stopped building fromt he commandline. Need to fix that,
but it's not up right now)

//Magnus

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Mair 2005-01-09 14:53:24 Re: PostgreSQL 8.0.0 Release Candidate 4
Previous Message Magnus Hagander 2005-01-09 14:24:30 Re: PostgreSQL 8 for Win32 -- installation problem