编译libpqxx3.0
一、下载 postgresql-8.3.5.tar.bz2 (http://www.postgresql.org/ftp/source/v8.3.5/), 解压到如D:"Downloads"postgresql-8.3.5下 ;
二、 运行Visual Studio 2008 Command Prompt(%comspec% /k ""C:"Program Files"Microsoft Visual Studio 9.0"VC"vcvarsall.bat"" x86),进入D:"Downloads"postgresql-8.3.5"src下,运行“nmake /f win32.mak ALL”;
三、下载libpqxx-3.0.tar.gz(http://pqxx.org/download/software/libpqxx/libpqxx-3.0.tar.gz)解压到如“D:"Downloads"libpqxx-3.0”;
四、 copy “D:"Downloads"libpqxx-3.0"config"sample-headers"compiler"VisualC++.NET- 2003"pqxx”下的两个“.h”文件到“D:"Downloads"libpqxx-3.0"include"pqxx”;copy“D: "Downloads"libpqxx-3.0"config"sample-headers"libpq"8.3"pqxx”下的文件到“D: "Downloads"libpqxx-3.0"include"pqxx”。
五、打开“D:"Downloads"libpqxx-3.0 "win32"common-sample”修改PGSQLSRC="D:"Downloads"postgresql-8.3.5"src",然后另存 为“D:"Downloads"libpqxx-3.0"win32"common“。
五、在“D:"Downloads"libpqxx-3.0”下运行”nmake /f win32/vc-libpqxx.mak dllrelease“和”nmake /f win32/vc-libpqxx.mak staticrelease“
如果需要debug模式则需要将”二“中的“nmake /f win32.mak ALL” 改为”nmake /f win32.mak DEBUG=1“
ok,这就成了。
二、 运行Visual Studio 2008 Command Prompt(%comspec% /k ""C:"Program Files"Microsoft Visual Studio 9.0"VC"vcvarsall.bat"" x86),进入D:"Downloads"postgresql-8.3.5"src下,运行“nmake /f win32.mak ALL”;
三、下载libpqxx-3.0.tar.gz(http://pqxx.org/download/software/libpqxx/libpqxx-3.0.tar.gz)解压到如“D:"Downloads"libpqxx-3.0”;
四、 copy “D:"Downloads"libpqxx-3.0"config"sample-headers"compiler"VisualC++.NET- 2003"pqxx”下的两个“.h”文件到“D:"Downloads"libpqxx-3.0"include"pqxx”;copy“D: "Downloads"libpqxx-3.0"config"sample-headers"libpq"8.3"pqxx”下的文件到“D: "Downloads"libpqxx-3.0"include"pqxx”。
五、打开“D:"Downloads"libpqxx-3.0 "win32"common-sample”修改PGSQLSRC="D:"Downloads"postgresql-8.3.5"src",然后另存 为“D:"Downloads"libpqxx-3.0"win32"common“。
五、在“D:"Downloads"libpqxx-3.0”下运行”nmake /f win32/vc-libpqxx.mak dllrelease“和”nmake /f win32/vc-libpqxx.mak staticrelease“
如果需要debug模式则需要将”二“中的“nmake /f win32.mak ALL” 改为”nmake /f win32.mak DEBUG=1“
ok,这就成了。