From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Problem when I'm using libpq PQconnectdb function
Date: Wed, 11 Feb 2004 23:52:05 +0100
Message-ID: <20040211225205.GL94664@xs4all.nl> (raw)
In-Reply-To: <20040211222150.64646.qmail@web41213.mail.yahoo.com>
References: <20040211222150.64646.qmail@web41213.mail.yahoo.com>
On Wed, Feb 11, 2004 at 02:21:50PM -0800, Daniel Gerardo Lucero Baylon wrote:
> I compile a C program which uses libpq on Win 32.
>
> When call PQconnectdb function and retrieves error message (PQerrorMessage),
> this is error function returns:
>
> "could not create socket: WSAStartup not yet called (0x0000276D/10093)"
>
> I don't know what error means.
The error means that WSAStartup has not yet been called. And that means
that you must call WSAStartup before you try to create a socket. That's
what the message says. It's a Windows-specific problem that doesn't exist
on other systems.
These are generic C/C++/Windows programming problems, so this is not really
the right place to bring them up...
Jeroen
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: jtv@xs4all.nl, daniel_baylon@yahoo.com
Subject: Re: Problem when I'm using libpq PQconnectdb function
In-Reply-To: <20040211225205.GL94664@xs4all.nl>
* 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