libpqxx version 2.6.9
I am using platform sdk R2 for win2k3.
Successfully able to build libpq from postgresql sources for AMD64 by simply changing
/machine:AMD64
I am compiling libpqxx for 64bit AMD processor. I simply changed win32/vc-libpqxx.mak /machine:I386 option to /machine:AMD64. but it fails to build. It seems that there are some changes in std::iterator in platform sdk. I got the following error
Microsoft (R) Program Maintenance Utility Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.
cl.exe /nologo /W3 /GX /FD /Wp64 /GR /c /I "include" /I "C:\Work\64bit\
sc-contrib\libpqxx-2.6.9\..\postgresql-8.0.4\src/include" /I "C:\Work\64bit\sc-c
ontrib\libpqxx-2.6.9\..\postgresql-8.0.4\src/interfaces/libpq" /D PGSTD="std" /
D "WIN32" /D "_MBCS" /D "_WINDOWS" /D "PQXX_INTERNAL" /MDd /Od /D "_LIB" /D "_DE
BUG" /Zc:forScope /Fo"ObjStaticDebug\\" /Fd"ObjStaticDebug\\" src/cursor.cxx
cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
moved in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cursor.cxx
include\pqxx\result.hxx(426) : error C2977: 'std::iterator' : too many template
arguments
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Inclu
de\crt\utility(70) : see declaration of 'std::iterator'
include\pqxx\result.hxx(435) : error C2955: 'std::iterator' : use of class templ
ate requires template argument list
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Inclu
de\crt\utility(70) : see declaration of 'std::iterator'
Can someone please help and let me know if i am missing something.
I have to build libpqxx on 64 bit