Thread: Help - psql/libpq under mswin

Help - psql/libpq under mswin

From
"Nairn, Bruce"
Date:
<p><font size="2">Hi,</font><p><font size="2">  I'm hoping someone can point out what I missed here.  I'm hoping to get
postgresqlto interface with a C++ program compiled under vc++ 6.0 on a win2k machine.</font><p><font size="2">I have:
cygwin1.3.22-1</font><br /><font size="2">          cygipc 1.14-1</font><br /><font size="2">          postgresql
7.3.3-1</font><p><fontsize="2">Under cygwin, everything seems to run as expected, i.e. I can follow the steps to create
andthen use psql to view a db.  I built the libpq portion under mswin (vc++ 6.0) as described in Chapter 2 of the docs,
whichalso built a version of psql.  Attempting to use this version of psql (or libpq) returns the error:</font><p><font
size="2">couldnot create socket: Address family not supported (0x0000273F/10047)</font><p><font size="2">Can someone
pointout where I erred?</font><p><font size="2">Thanks,</font><br /><font size="2">Bruce </font>