Building the MySQL and PostgreSQL libraries on Windows

MySQL does not support gcc on Windows, only MSVC. Moved to a separate page.

PostgreSQL

http://www.postgresql.org/ftp/source/v8.3.9/

$ LDFLAGS=-L/c/met.no/lib CPPFLAGS=-I/c/met.no/include ./configure --prefix=/c/met.no
$ make
$ make -C src/interfaces/libpq install
$ make -C src/bin/pg_config install
$ make -C src/include install

http://pqxx.org/development/libpqxx/wiki/DownloadPage

$ LDFLAGS=-L/c/met.no/lib CPPFLAGS=-I/c/met.no/include PG_CONFIG=/c/met.no/bin/pg_config.exe ./configure --prefix=/c/met.no
$ make all install