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

Re: Problem with win 32 libpq calls

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Daniel Gerardo Lucero Baylon" <daniel_baylon(at)yahoo(dot)com>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Problem with win 32 libpq calls
Date: 2004-02-13 19:33:18
Message-ID: 6EE64EF3AB31D5448D0007DD34EEB34101AD3B@Herge.rcsinc.local (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
1. What version windows?  If by some oddball chance you are still using
windows 95, you need to get winsock 2, and strongly consider upgrading
your OS. 

2. What version postgres?  If you are using the cvs sources, their may
be some unresolved issues wrt the windows port.  Stick to the official
7.4.1 for compiling psql.

3. If you are still stumped, consider trying to use the internet
services when your application loads (like resolving in
gethostbyname() ).  This will load up the winsock dlls which are
sometimes demand loaded.  If all else fails, bite the bullet and call
WSAStartup and see what happens.


> -----Original Message-----
> From: pgsql-hackers-win32-owner(at)postgresql(dot)org [mailto:pgsql-hackers-
> win32-owner(at)postgresql(dot)org] On Behalf Of Daniel Gerardo Lucero Baylon
> Sent: Wednesday, February 11, 2004 6:11 PM
> To: pgsql-hackers-win32(at)postgresql(dot)org
> Subject: [pgsql-hackers-win32] Problem with win 32 libpq calls
> I compiled 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
> I don't know what error means.
> I appreciate some help
> Best Regards.
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> ---------------------------(end of
> TIP 9: the planner will ignore your desire to choose an index scan if
>       joining column's datatypes do not match

pgsql-hackers-win32 by date

Next:From: Claudio NatoliDate: 2004-02-13 23:04:22
Subject: Re: registry vs. environment (was re:binary
Previous:From: Andrew DunstanDate: 2004-02-13 15:04:30
Subject: Re: registry vs. environment (was re:binary

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