Shoot, forgot to send this to the list. I'm getting better, at least.

On Wed, Dec 07, 2005 at 03:49:30PM -0500, DEV wrote:
> Hello all,
> I am working on getting to use libpqxx to work in C++Builder.  Has anyone
> had any success in getting this to work?  If so could you please post what
> you had to do to make it all work!
> THANK YOU!

Hi there! Here's my own cheat sheet on how to make it work. I know it
works just fine under Windows 2000, but it should also work under
Windows XP. Now, this is *not* C++ builder, but it might give enough
help, I hope. Hope this helps:

# Install the current version of MinGW (http://www.mingw.org/)
# Install MSyS (http://www.mingw.org/) but not into the MinGW directory 
structure!!
# extract, compile, and install zlib (http://www.zlib.net/)
    ./configure --prefix=c:/mingw/local && make && make install
# extract, compile, and install PostGreSQL (http://www.postgresql.org/)
    ./configure --prefix=c:/mingw/local --with-includes=c:/mingw/local/include 
--with-libs=c:/mingw/local/lib
    make && make install
# extract and compile libpqxx (http://www.pqxx.tk/)
   Execute the following lines:
    export LDFLAGS=-lws2_32
    export PGHOST=localhost
    export PGDATABASE=libpqxx
    export PGUSER=libpqxx-user
    export PGPASSWORD=libpqxx-pass
    ./configure --prefix=c:/mingw/local --disable-shared --enable-static 
--disable-thread-safety --with-includes=c:/mingw/local/include 
--with-libs=c:/mingw/local/lib
    make && make check && make install


-- 
Michael J. Pedersen
My IM IDs: Jabber/[EMAIL PROTECTED], ICQ/103345809, AIM/pedermj022171
           Yahoo/pedermj2002, MSN/[EMAIL PROTECTED]
My GnuPG KeyID: 4E724A60             My Public Key Available At: pgp.mit.edu
My GnuPG Key Fingerprint: C31C 7E90 5992 9E5E 9A02  233D D8DD 985E 4E72 4A60

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to