Обсуждение: Help with LibPgxx and Windows!
Hello,
I need to get LibPqxx up and running on Windows. I have a pgSQL client which works fine on Linux and I need to port the baby to Windows. 1st challenge was getting a port of ‘popt’ library which I used to parse cmdline options. Now I need to get libpqxx up and running. Does anyone have any experience in accomplishing this. If not, what do other people do to get around this. Is there a more portable pgsql/C++ interface? I have MSVC 6.0 and can’t seem to get the makefile to work. Is there a binary I can just link with? Also where can I get the pgsql.dll which is required.
Any help would be appreciated… If I get no answer then I am busted on the Windows platform and I will rue the day I chose to go with libpqxx. Is there a ODBC driver for postgres on Windows? Maybe I can go that route? If so, my Linux implementation will need some major tweaking…
Please help… I am hoping to have this solved by next week. I was really hoping to get the application to start building this week, but this is becoming a bit of a hinderance…
Thank you,
Michael Uman
Sr. Software Engineer
Softwaremagic.net
On Thu, Feb 13, 2003 at 10:45:29AM -0800, Michael Uman wrote: > > I need to get LibPqxx up and running on Windows. I have a pgSQL client > which works fine on Linux and I need to port the baby to Windows. 1st > challenge was getting a port of 'popt' library which I used to parse > cmdline options. Now I need to get libpqxx up and running. Does anyone > have any experience in accomplishing this. If not, what do other people > do to get around this. Is there a more portable pgsql/C++ interface? I > have MSVC 6.0 and can't seem to get the makefile to work. Is there a > binary I can just link with? Also where can I get the pgsql.dll which is > required. One thing you can do is simply set up your own project file with all the .cxx files in the src directory, edit include/pqxx/config.h (as described in the README), and compile it all into a library. The Visual C++ Makefile hasn't been updated in a while, but there's nothing magical about what it does. You may also want to check out the mailing list on www.pqxx.tk and check the bug reports & feature requests lists there. Jeroen