Skip site navigation (1) Skip section navigation (2)

Re: Problem when I'm using libpq PQconnectdb function

From: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
To: Daniel Gerardo Lucero Baylon <daniel_baylon(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Problem when I'm using libpq PQconnectdb function
Date: 2004-02-11 22:52:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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...


In response to

pgsql-interfaces by date

Next:From: L J BayukDate: 2004-02-11 22:55:24
Subject: Re: Can not connect with pgin.tcl
Previous:From: Daniel Gerardo Lucero BaylonDate: 2004-02-11 22:26:34
Subject: Re: Libpq linker error

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group