From: | "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | "Hatger, Carsten" <Carsten(dot)Hatger(at)ikg(dot)uni-hannover(dot)de>, "pgsql-cygwin" <pgsql-cygwin(at)postgresql(dot)org> |
Subject: | Re: PG 7.2.3, libpq.lib, libpqdll.lib, WIN32 (native), WSAStartup error, |
Date: | 2002-10-24 07:23:15 |
Message-ID: | 03AF4E498C591348A42FC93DEA9661B8849C@mail.vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin |
> -----Original Message-----
> From: Hatger, Carsten [mailto:Carsten(dot)Hatger(at)ikg(dot)uni-hannover(dot)de]
> Sent: 23 October 2002 19:24
> To: pgsql-cygwin
> Subject: [CYGWIN] PG 7.2.3, libpq.lib, libpqdll.lib, WIN32
> (native), WSAStartup error,
>
>
> hi over there,
>
> I'm not quite sure, wether I'm right or not.
> It seems there's a bug/missing feature in the WIN32 (native)
> specific part of libpq. If one wants to use the statically
> linked version of libpq, WSAStartup (in libpqdll.c) never
> gets called and subsequent actions will fail. In fact
> WSAStartup only is called when linking to libpqdll.lib.
>
> Any comments?
I got caught by that a couple of weeks ago when I started on pgAdmin
III. I must admit I didn't think anything of it at the time and just
#ifdef'd the call into my code.
I'm wondering if the reason it's not there is because unlike the dll,
there is not dllmain() that is automatically run, hence the best that
could be included is a wrapper function that just calls WSAStartup? You
might as well just call it yourself...
Regards, Dave.
From | Date | Subject | |
---|---|---|---|
Next Message | Jason Tishler | 2002-10-24 12:07:40 | Re: Simplifying Cygwin PosgreSQL Installation |
Previous Message | Hatger, Carsten | 2002-10-23 18:24:14 | PG 7.2.3, libpq.lib, libpqdll.lib, WIN32 (native), WSAStartup error, |