Thread: Help with LibPgxx and Windows!

Help with LibPgxx and Windows!

From
Michael Uman
Date:
<div class="Section1"><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Hello,</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">I need to get <span class="SpellE">LibPqxx</span> up and running on Windows. I have a <span
class="SpellE">pgSQL</span>client which works fine on Linux and I need to port the baby to Windows. 1<sup>st</sup>
challengewas getting a port of ‘<span class="SpellE">popt</span>’ library which I used to parse <span
class="SpellE">cmdline</span>options. Now I need to get <span class="SpellE">libpqxx</span> up and running. Does anyone
haveany experience in accomplishing <span class="GramE">this.</span> If not, what do other people do to get around
<spanclass="GramE">this.</span> Is there a more portable <span class="SpellE">pgsql</span>/C++ interface? I have MSVC
6.0and can’t seem to get the <span class="SpellE">makefile</span> to work. Is there a binary I can just link with? Also
wherecan I get the pgsql.dll which is <span class="GramE">required.</span></span></font><p class="MsoNormal"><font
face="Arial"size="2"><span style="font-size:10.0pt;
 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Any help would be appreciated… If I get no answer then I am busted on the Windows platform and I
willrue the day I chose to go with <span class="SpellE">libpqxx</span>. Is there <span class="GramE">a</span> ODBC
driverfor <span class="SpellE">postgres</span> on Windows? Maybe I can go that route? If so, my Linux implementation
willneed some major tweaking…</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Please help… I am hoping to have this solved by next week. I was really hoping to get the
applicationto start building this week, but this is becoming a bit of a <span
class="SpellE">hinderance</span>…</span></font><pclass="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Thank you,</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial">Michael Uman</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial">Sr. Software Engineer</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial">Softwaremagic.net</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"><a href="http://www.softwaremagic.net/">http://www.softwaremagic.net</a></span></font><p
class="MsoNormal"><fontface="Arial" size="2"><span style="font-size:10.0pt;
 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font></div>

Re: Help with LibPgxx and Windows!

From
"Jeroen T. Vermeulen"
Date:
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