X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 39447D1C7F7 for ; Wed, 11 Feb 2004 22:52:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 45054-08 for ; Wed, 11 Feb 2004 18:52:07 -0400 (AST) Received: from smtp-out6.xs4all.nl (smtp-out6.xs4all.nl [194.109.24.7]) by svr1.postgresql.org (Postfix) with ESMTP id 1E69CD1D643 for ; Wed, 11 Feb 2004 18:52:06 -0400 (AST) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.21.2]) by smtp-out6.xs4all.nl (8.12.10/8.12.10) with ESMTP id i1BMq6iU030088; Wed, 11 Feb 2004 23:52:06 +0100 (CET) Received: from xs1.xs4all.nl (jtv@localhost.xs4all.nl [127.0.0.1]) by xs1.xs4all.nl (8.12.10/8.12.9) with ESMTP id i1BMq6BT022442; Wed, 11 Feb 2004 23:52:06 +0100 (CET) (envelope-from jtv@xs4all.nl) Received: (from jtv@localhost) by xs1.xs4all.nl (8.12.10/8.12.9/Submit) id i1BMq5YG022441; Wed, 11 Feb 2004 23:52:05 +0100 (CET) (envelope-from jtv) Date: Wed, 11 Feb 2004 23:52:05 +0100 From: "Jeroen T. Vermeulen" To: Daniel Gerardo Lucero Baylon Cc: pgsql-interfaces@postgresql.org Subject: Re: Problem when I'm using libpq PQconnectdb function Message-ID: <20040211225205.GL94664@xs4all.nl> Mail-Followup-To: Daniel Gerardo Lucero Baylon , pgsql-interfaces@postgresql.org References: <20040211222150.64646.qmail@web41213.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040211222150.64646.qmail@web41213.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/20 X-Sequence-Number: 4713 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