pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
libpq won't connect when client is built with MinGW 2+ messages / 1 participants [nested] [flat]
* libpq won't connect when client is built with MinGW @ 2005-10-21 19:37 Stefan T. Peters <stefan@electroniczombie.com> 0 siblings, 0 replies; 2+ messages in thread From: Stefan T. Peters @ 2005-10-21 19:37 UTC (permalink / raw) To: pgsql-interfaces Hello, I've been trying to get a simple test program built on Windows XP Pro SP2 using MinGW 4.1.0 + MSYS 1.0.10. I am using the standard "postgresql-8.0.4.zip" download with the development libs selected during install. Everything builds nicely, but whenever I try to do a PQconnectdb with an IP address (hostaddr=10.0.0.23), I get the following from PQerrorMessage: -- could not create socket: The requested service provider could not be loaded or initialized. (0x0000277A/10106) -- And when I try it with a host name (host=testdb), I get the following from PQerrorMessage: -- could not translate host name "testdb2" to address: Unknown host -- BTW, the computer can resolve testdb2 to 10.0.0.23 just fine... Any ideas? Here is the output of my build script (as created by Eclipse 3.1 + CDT 3.0): -- **** Full rebuild of configuration Debug for project HelloWorld **** make -k clean all rm -rf ./main.o ./main.d HelloWorld.exe Building file: ../main.cpp Invoking: GCC C++ Compiler g++ -IC:\Program Files\PostgreSQL\8.0\include -O0 -g3 -Wall -c -fmessage-length=0 -omain.o ../main.cpp Finished building: ../main.cpp Building target: HelloWorld.exe Invoking: GCC C++ Linker g++ -LC:\Program Files\PostgreSQL\8.0\lib -oHelloWorld.exe ./main.o -lpq Finished building target: HelloWorld.exe Build complete for project HelloWorld -- Stefan T. Peters Attachments: [text/x-vcard] stefan.vcf (161B, ../../43594384.8040501@electroniczombie.com/2-stefan.vcf) download | inline: begin:vcard fn:Stefan T. Peters n:Peters;Stefan email;internet:stefan@electroniczombie.com tel;work:(800) 614.5375 #711 x-mozilla-html:TRUE version:2.1 end:vcard ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: libpq won't connect when client is built with MinGW @ 2005-10-21 20:28 Stefan T. Peters <stefan@electroniczombie.com> 0 siblings, 0 replies; 2+ messages in thread From: Stefan T. Peters @ 2005-10-21 20:28 UTC (permalink / raw) To: pgsql-interfaces I got it sorted out... Turns out it was because I was running it from inside Eclipse (it attaches STDIO to a sub-window, very nice feature BTW). Once I turned off that feature (so that it ran in it's own normal console window), or ran it from cmd.exe, it worked fine. Must be a bug with the current version of Eclipse-CDT, will send it to them ;) -- Stefan T. Peters ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-10-21 20:28 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2005-10-21 19:37 libpq won't connect when client is built with MinGW Stefan T. Peters <stefan@electroniczombie.com> 2005-10-21 20:28 Re: libpq won't connect when client is built with MinGW Stefan T. Peters <stefan@electroniczombie.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox