From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <mha@sollentuna.net>
Cc: 'David Giffin' <david@agent911.com>
Cc: Ken J. Wright <ken@ori-ind.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] Win32 interface
Date: Sat, 04 Sep 1999 11:20:59 -0400
Message-ID: <24150.936458459@sss.pgh.pa.us> (raw)
In-Reply-To: <215896B6B5E1CF11BC5600805FFEA82101F7105F@sirius.edu.sollentuna.se>
Magnus Hagander <mha@sollentuna.net> writes:
> The problem is that in the DllMain() of the libpq.dll file, WSAStartup() is
> called, and that is required before any winsock functions will work.
> If you link statically, you have to manually run WSAStartup.
>
> This should probably be documented :-)
Didn't we talk about having fe-connect.c call WSAStartup()
(conditionally compiled of course) to avoid this problem?
ISTM there was some reason it wouldn't work, like maybe you can
only call WSAStartup once per program, but I don't recall for sure.
If it *would* work it would probably be a better answer than making
users remember to call the thing.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, mha@sollentuna.net, david@agent911.com, ken@ori-ind.com
Subject: Re: [INTERFACES] Win32 interface
In-Reply-To: <24150.936458459@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox