Re: PG 7.2.3, libpq.lib, libpqdll.lib, WIN32 (native), WSAStartup error,

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: PG 7.2.3, libpq.lib, libpqdll.lib, WIN32 (native), WSAStartup error,
Дата
Msg-id 03AF4E498C591348A42FC93DEA9661B8849C@mail.vale-housing.co.uk
обсуждение исходный текст
Ответ на PG 7.2.3, libpq.lib, libpqdll.lib, WIN32 (native), WSAStartup error,  ("Hatger, Carsten" <Carsten.Hatger@ikg.uni-hannover.de>)
Список pgsql-cygwin

> -----Original Message-----
> From: Hatger, Carsten [mailto:Carsten.Hatger@ikg.uni-hannover.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.

В списке pgsql-cygwin по дате отправления:

Предыдущее
От: "Hatger, Carsten"
Дата:
Сообщение: PG 7.2.3, libpq.lib, libpqdll.lib, WIN32 (native), WSAStartup error,
Следующее
От: Jason Tishler
Дата:
Сообщение: Re: Simplifying Cygwin PosgreSQL Installation