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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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: Fri, 13 Feb 2004 14:33:18 -0500
  • Message-id: <6EE64EF3AB31D5448D0007DD34EEB34101AD3B(at)Herge(dot)rcsinc(dot)local>

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 yahoo.com 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.

Merlin



> -----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
(0x0000276D/10093)"
> 
> 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.
> http://taxes.yahoo.com/filing.html
> 
> ---------------------------(end of
broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if
your
>       joining column's datatypes do not match



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group