win32 build error in _path.cpp: 'numeric_limits' : is not a member of 'std'

Hello,

I just updated from svn (r5042) for the first time in about 6 months (I think r3296 or so was my last rev), and I can no longer build in win32 with msvc 7.1. I've got win32_static (extracted from http://matplotlib.sourceforge.net/win32_static_vs.tar.gz) in my mpl root folder. Here's what I get:

···

python setup.py build_ext --inplace --force

============================================================================
BUILDING MATPLOTLIB
           matplotlib: 0.98pre
               python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
                       v.1310 32 bit (Intel)]
             platform: win32
      Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
                numpy: 1.0.5.dev5035
            freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
               libpng: found, but unknown version (no pkg-config)
              Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
             wxPython: 2.8.6.0
                       * WxAgg extension not required for wxPython >= 2.8
                 Gtk+: no
                       * Building for Gtk+ requires pygtk; you must be able
                       * to "import gtk" in your build/install environment
                   Qt: no
                  Qt4: no
                Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
             datetime: present, version unknown
             dateutil: matplotlib will provide
                 pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
               dvipng: 1.9
          ghostscript: 'gswin32c' is not recognized as an internal or
                       external command, operable program or batch file.
                latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
            configobj: matplotlib will provide
     enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

running build_ext
building 'matplotlib.ft2font' extension
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
creating build\temp.win32-2.5\Release\src
creating build\temp.win32-2.5\Release\CXX
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild
\temp.win32-2.5\Release\src/ft2font.obj
ft2font.cpp
src\ft2font.cpp(947) : warning C4244: 'initializing' : conversion from 'FT_Long' to 'FT_Bool', possible loss of data
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil
d\temp.win32-2.5\Release\src/mplutils.obj
mplutils.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu
ild\temp.win32-2.5\Release\CXX\cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /
Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf
ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob
uild\temp.win32-2.5\Release\CXX\cxxextensions.obj
cxxextensions.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib /EXPORT:initft2font build\temp.win32-2.5\Rele
ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\
temp.win32-2.5\Release\CXX\cxx_extensions.obj build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj build\temp.wi
n32-2.5\Release\CXX\cxxextensions.obj /OUT:lib\matplotlib\ft2font.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ft2font.l
ib
  Creating library build\temp.win32-2.5\Release\src\ft2font.lib and object build\temp.win32-2.5\Release\src\ft2font.exp

building 'matplotlib.ttconv' extension
creating build\temp.win32-2.5\Release\ttconv
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/_ttconv.cpp /Fobuild\temp.win32-2.5\Release\src/_ttconv.obj
_ttconv.cpp
src\_ttconv.cpp(112) : warning C4101: 'e' : unreferenced local variable
src\_ttconv.cpp(166) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt.o
bj
pprdrv_tt.cpp
ttconv\pprdrv_tt.cpp(143) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(312) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(1136) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt2.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt2
.obj
pprdrv_tt2.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/ttutil.cpp /Fobuild\temp.win32-2.5\Release\ttconv/ttutil.obj
ttutil.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initttconv build\temp.win32-2.5\Release\src/_ttconv.obj
build\temp.win32-2.5\Release\ttconv/pprdrv_tt.obj build\temp.win32-2.5\Release\ttconv/pprdrv_tt2.obj build\temp.win32-2.
5\Release\ttconv/ttutil.obj /OUT:lib\matplotlib\ttconv.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ttconv.lib
  Creating library build\temp.win32-2.5\Release\src\ttconv.lib and object build\temp.win32-2.5\Release\src\ttconv.exp
building 'matplotlib._cntr' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/cntr.c /Fobu
ild\temp.win32-2.5\Release\src/cntr.obj
cntr.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:init_cntr build\temp.win32-2.5\Release\src/cntr.obj /OUT
:lib\matplotlib\_cntr.pyd /IMPLIB:build\temp.win32-2.5\Release\src\_cntr.lib
  Creating library build\temp.win32-2.5\Release\src\_cntr.lib and object build\temp.win32-2.5\Release\src\_cntr.exp
building 'matplotlib.nxutils' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/nxutils.c /F
obuild\temp.win32-2.5\Release\src/nxutils.obj
nxutils.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initnxutils build\temp.win32-2.5\Release\src/nxutils.obj
/OUT:lib\matplotlib\nxutils.pyd /IMPLIB:build\temp.win32-2.5\Release\src\nxutils.lib
  Creating library build\temp.win32-2.5\Release\src\nxutils.lib and object build\temp.win32-2.5\Release\src\nxutils.exp

building 'matplotlib._path' extension

creating build\temp.win32-2.5\Release\agg24
creating build\temp.win32-2.5\Release\agg24\src
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_curves.cpp /Fobuild\temp.win32-2.5\Releas
e\agg24/src/agg_curves.obj
agg_curves.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_bezier_arc.cpp /Fobuild\temp.win32-2.5\Re
lease\agg24/src/agg_bezier_arc.obj
agg_bezier_arc.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_trans_affine.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_trans_affine.obj
agg_trans_affine.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_vcgen_stroke.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_vcgen_stroke.obj
agg_vcgen_stroke.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobuild\temp.win32-2.5\Release\CXX\
cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /Fobuild\temp.win32-2.5\Release\
CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterface.cxx /Fobuild\temp.win32-2.5
\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fobuild\temp.win32-2.5\Release\CXX
\cxxextensions.obj
cxxextensions.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(98) : warning C4800: 'PyArrayObject *' : forcing valu
e to bool 'true' or 'false' (performance warning)
src\path.cpp(308) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(308) : error C2065: 'numeric_limits' : undeclared identifier
src\path.cpp(308) : error C2062: type 'double' unexpected
src\path.cpp(308) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(309) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(309) : error C2062: type 'double' unexpected
src\path.cpp(309) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(310) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(310) : error C2062: type 'double' unexpected
src\path.cpp(310) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(311) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(311) : error C2062: type 'double' unexpected
src\path.cpp(311) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(312) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(312) : error C2062: type 'double' unexpected
src\path.cpp(312) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(313) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(313) : error C2062: type 'double' unexpected
src\path.cpp(313) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(309) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(310) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(311) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(312) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(313) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(340) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(385) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(385) : error C2062: type 'double' unexpected
src\path.cpp(385) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(386) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(386) : error C2062: type 'double' unexpected
src\path.cpp(386) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(387) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(387) : error C2062: type 'double' unexpected
src\path.cpp(387) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(388) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(388) : error C2062: type 'double' unexpected
src\path.cpp(388) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(389) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(389) : error C2062: type 'double' unexpected
src\path.cpp(389) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(390) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(390) : error C2062: type 'double' unexpected
src\path.cpp(390) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(385) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(386) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(387) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(388) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(389) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(390) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(475) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(475) : error C2062: type 'double' unexpected
src\path.cpp(475) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(476) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(476) : error C2062: type 'double' unexpected
src\path.cpp(476) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(477) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(477) : error C2062: type 'double' unexpected
src\path.cpp(477) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(478) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(478) : error C2062: type 'double' unexpected
src\path.cpp(478) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(479) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(479) : error C2062: type 'double' unexpected
src\path.cpp(479) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(480) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(480) : error C2062: type 'double' unexpected
src\path.cpp(480) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(475) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(476) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(477) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(478) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(479) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(480) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(535) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(835) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(1001) : error C2146: syntax error : missing ')' before identifier 'or'
src\path.cpp(1000) : error C3861: 'not': identifier not found, even with argument-dependent lookup
src\path.cpp(1003) : error C2059: syntax error : ')'
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

It looks like _path.cpp is a new file that was added since my last update. Any ideas?

Thanks!

Martin

I just tried reverting to some older revs. r4802 (0.91.2 release) builds fine. r4817, where the transforms branch was merged in, doesn't, and gives what looks like the same error (see below) as the current revision (see previous post). I think r4817 is also the first time the file _path.cpp shows up in the trunk.

Martin

C:\home\mspacek\Desktop\Work\matplotlib>python setup.py build_ext --inplace --force

···

============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.91.2svn
                python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
                        v.1310 32 bit (Intel)]
              platform: win32
       Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
                 numpy: 1.0.5.dev5035
             freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
               Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
              wxPython: 2.8.6.0
                        * WxAgg extension not required for wxPython >= 2.8
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
                    Qt: no
                   Qt4: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
                dvipng: 1.9
           ghostscript: 'gswin32c' is not recognized as an internal or
                        external command, operable program or batch file.
                 latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
             configobj: matplotlib will provide
      enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

running build_ext
building 'matplotlib.ft2font' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild
\temp.win32-2.5\Release\src/ft2font.obj
ft2font.cpp
src\ft2font.cpp(956) : warning C4244: 'initializing' : conversion from 'FT_Long' to 'FT_Bool', possible loss of data
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil
d\temp.win32-2.5\Release\src/mplutils.obj
mplutils.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu
ild\temp.win32-2.5\Release\CXX\cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /
Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf
ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob
uild\temp.win32-2.5\Release\CXX\cxxextensions.obj
cxxextensions.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib /EXPORT:initft2font build\temp.win32-2.5\Rele
ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\
temp.win32-2.5\Release\CXX\cxx_extensions.obj build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj build\temp.wi
n32-2.5\Release\CXX\cxxextensions.obj /OUT:lib\matplotlib\ft2font.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ft2font.l
ib
   Creating library build\temp.win32-2.5\Release\src\ft2font.lib and object build\temp.win32-2.5\Release\src\ft2font.exp

building 'matplotlib.ttconv' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/_ttconv.cpp /Fobuild\temp.win32-2.5\Release\src/_ttconv.obj
_ttconv.cpp
src\_ttconv.cpp(112) : warning C4101: 'e' : unreferenced local variable
src\_ttconv.cpp(166) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt.o
bj
pprdrv_tt.cpp
ttconv\pprdrv_tt.cpp(143) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(312) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(1136) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt2.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt2
.obj
pprdrv_tt2.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/ttutil.cpp /Fobuild\temp.win32-2.5\Release\ttconv/ttutil.obj
ttutil.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initttconv build\temp.win32-2.5\Release\src/_ttconv.obj
build\temp.win32-2.5\Release\ttconv/pprdrv_tt.obj build\temp.win32-2.5\Release\ttconv/pprdrv_tt2.obj build\temp.win32-2.
5\Release\ttconv/ttutil.obj /OUT:lib\matplotlib\ttconv.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ttconv.lib
   Creating library build\temp.win32-2.5\Release\src\ttconv.lib and object build\temp.win32-2.5\Release\src\ttconv.exp
building 'matplotlib._cntr' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/cntr.c /Fobu
ild\temp.win32-2.5\Release\src/cntr.obj
cntr.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:init_cntr build\temp.win32-2.5\Release\src/cntr.obj /OUT
:lib\matplotlib\_cntr.pyd /IMPLIB:build\temp.win32-2.5\Release\src\_cntr.lib
   Creating library build\temp.win32-2.5\Release\src\_cntr.lib and object build\temp.win32-2.5\Release\src\_cntr.exp
building 'matplotlib.nxutils' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/nxutils.c /F
obuild\temp.win32-2.5\Release\src/nxutils.obj
nxutils.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initnxutils build\temp.win32-2.5\Release\src/nxutils.obj
/OUT:lib\matplotlib\nxutils.pyd /IMPLIB:build\temp.win32-2.5\Release\src\nxutils.lib
   Creating library build\temp.win32-2.5\Release\src\nxutils.lib and object build\temp.win32-2.5\Release\src\nxutils.exp

building 'matplotlib._path' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_curves.cpp /Fobuild\temp.win32-2.5\Releas
e\agg24/src/agg_curves.obj
agg_curves.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_bezier_arc.cpp /Fobuild\temp.win32-2.5\Re
lease\agg24/src/agg_bezier_arc.obj
agg_bezier_arc.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_trans_affine.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_trans_affine.obj
agg_trans_affine.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_vcgen_stroke.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_vcgen_stroke.obj
agg_vcgen_stroke.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobuild\temp.win32-2.5\Release\CXX\
cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /Fobuild\temp.win32-2.5\Release\
CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterface.cxx /Fobuild\temp.win32-2.5
\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fobuild\temp.win32-2.5\Release\CXX
\cxxextensions.obj
cxxextensions.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(82) : warning C4800: 'PyArrayObject *' : forcing valu
e to bool 'true' or 'false' (performance warning)
src\path.cpp(302) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(302) : error C2065: 'numeric_limits' : undeclared identifier
src\path.cpp(302) : error C2062: type 'double' unexpected
src\path.cpp(302) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(303) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(303) : error C2062: type 'double' unexpected
src\path.cpp(303) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(304) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(304) : error C2062: type 'double' unexpected
src\path.cpp(304) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(305) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(305) : error C2062: type 'double' unexpected
src\path.cpp(305) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(303) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(304) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(305) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(338) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(371) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(371) : error C2062: type 'double' unexpected
src\path.cpp(371) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(372) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(372) : error C2062: type 'double' unexpected
src\path.cpp(372) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(373) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(373) : error C2062: type 'double' unexpected
src\path.cpp(373) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(374) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(374) : error C2062: type 'double' unexpected
src\path.cpp(374) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(375) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(375) : error C2062: type 'double' unexpected
src\path.cpp(375) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(376) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(376) : error C2062: type 'double' unexpected
src\path.cpp(376) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(371) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(372) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(373) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(374) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(375) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(376) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(468) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(468) : error C2062: type 'double' unexpected
src\path.cpp(468) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(469) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(469) : error C2062: type 'double' unexpected
src\path.cpp(469) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(470) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(470) : error C2062: type 'double' unexpected
src\path.cpp(470) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(471) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(471) : error C2062: type 'double' unexpected
src\path.cpp(471) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(468) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(469) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(470) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(471) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(526) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(826) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(992) : error C2146: syntax error : missing ')' before identifier 'or'
src\path.cpp(991) : error C3861: 'not': identifier not found, even with argument-dependent lookup
src\path.cpp(994) : error C2059: syntax error : ')'
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

Unfortunately, you're using a compiler I don't have access to. I don't think even the guy that makes the Windows releases (Charlie Moad) uses Visual Studio 2003. That is not to say we don't want VS2003 to work, just that it unfortunately doesn't get much testing and you're hitting the bleeding edge here.

If you add --

  #include <limits>

to the top of path.cpp, does that resolve the issue?

If not, we may need to do some namespace mangling on VS2003 -- Microsoft's docs don't seem to *explicitly* put numeric_limits in the std:: namespace, but in my past experience, std:: is often a synonym for :: in Visual Studio.

Cheers,
Mike

Martin Spacek wrote:

···

I just tried reverting to some older revs. r4802 (0.91.2 release) builds fine. r4817, where the transforms branch was merged in, doesn't, and gives what looks like the same error (see below) as the current revision (see previous post). I think r4817 is also the first time the file _path.cpp shows up in the trunk.

Martin

C:\home\mspacek\Desktop\Work\matplotlib>python setup.py build_ext --inplace --force

BUILDING MATPLOTLIB
            matplotlib: 0.91.2svn
                python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
                        v.1310 32 bit (Intel)]
              platform: win32
       Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
                 numpy: 1.0.5.dev5035
             freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
               Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
              wxPython: 2.8.6.0
                        * WxAgg extension not required for wxPython >= 2.8
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
                    Qt: no
                   Qt4: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
                dvipng: 1.9
           ghostscript: 'gswin32c' is not recognized as an internal or
                        external command, operable program or batch file.
                 latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
             configobj: matplotlib will provide
      enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

running build_ext
building 'matplotlib.ft2font' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild
\temp.win32-2.5\Release\src/ft2font.obj
ft2font.cpp
src\ft2font.cpp(956) : warning C4244: 'initializing' : conversion from 'FT_Long' to 'FT_Bool', possible loss of data
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil
d\temp.win32-2.5\Release\src/mplutils.obj
mplutils.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu
ild\temp.win32-2.5\Release\CXX\cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /
Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf
ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob
uild\temp.win32-2.5\Release\CXX\cxxextensions.obj
cxxextensions.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib /EXPORT:initft2font build\temp.win32-2.5\Rele
ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\
temp.win32-2.5\Release\CXX\cxx_extensions.obj build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj build\temp.wi
n32-2.5\Release\CXX\cxxextensions.obj /OUT:lib\matplotlib\ft2font.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ft2font.l
ib
   Creating library build\temp.win32-2.5\Release\src\ft2font.lib and object build\temp.win32-2.5\Release\src\ft2font.exp

building 'matplotlib.ttconv' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/_ttconv.cpp /Fobuild\temp.win32-2.5\Release\src/_ttconv.obj
_ttconv.cpp
src\_ttconv.cpp(112) : warning C4101: 'e' : unreferenced local variable
src\_ttconv.cpp(166) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt.o
bj
pprdrv_tt.cpp
ttconv\pprdrv_tt.cpp(143) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(312) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(1136) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt2.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt2
.obj
pprdrv_tt2.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/ttutil.cpp /Fobuild\temp.win32-2.5\Release\ttconv/ttutil.obj
ttutil.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initttconv build\temp.win32-2.5\Release\src/_ttconv.obj
build\temp.win32-2.5\Release\ttconv/pprdrv_tt.obj build\temp.win32-2.5\Release\ttconv/pprdrv_tt2.obj build\temp.win32-2.
5\Release\ttconv/ttutil.obj /OUT:lib\matplotlib\ttconv.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ttconv.lib
   Creating library build\temp.win32-2.5\Release\src\ttconv.lib and object build\temp.win32-2.5\Release\src\ttconv.exp
building 'matplotlib._cntr' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/cntr.c /Fobu
ild\temp.win32-2.5\Release\src/cntr.obj
cntr.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:init_cntr build\temp.win32-2.5\Release\src/cntr.obj /OUT
:lib\matplotlib\_cntr.pyd /IMPLIB:build\temp.win32-2.5\Release\src\_cntr.lib
   Creating library build\temp.win32-2.5\Release\src\_cntr.lib and object build\temp.win32-2.5\Release\src\_cntr.exp
building 'matplotlib.nxutils' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/nxutils.c /F
obuild\temp.win32-2.5\Release\src/nxutils.obj
nxutils.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initnxutils build\temp.win32-2.5\Release\src/nxutils.obj
/OUT:lib\matplotlib\nxutils.pyd /IMPLIB:build\temp.win32-2.5\Release\src\nxutils.lib
   Creating library build\temp.win32-2.5\Release\src\nxutils.lib and object build\temp.win32-2.5\Release\src\nxutils.exp

building 'matplotlib._path' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_curves.cpp /Fobuild\temp.win32-2.5\Releas
e\agg24/src/agg_curves.obj
agg_curves.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_bezier_arc.cpp /Fobuild\temp.win32-2.5\Re
lease\agg24/src/agg_bezier_arc.obj
agg_bezier_arc.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_trans_affine.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_trans_affine.obj
agg_trans_affine.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_vcgen_stroke.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_vcgen_stroke.obj
agg_vcgen_stroke.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobuild\temp.win32-2.5\Release\CXX\
cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /Fobuild\temp.win32-2.5\Release\
CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterface.cxx /Fobuild\temp.win32-2.5
\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fobuild\temp.win32-2.5\Release\CXX
\cxxextensions.obj
cxxextensions.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(82) : warning C4800: 'PyArrayObject *' : forcing valu
e to bool 'true' or 'false' (performance warning)
src\path.cpp(302) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(302) : error C2065: 'numeric_limits' : undeclared identifier
src\path.cpp(302) : error C2062: type 'double' unexpected
src\path.cpp(302) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(303) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(303) : error C2062: type 'double' unexpected
src\path.cpp(303) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(304) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(304) : error C2062: type 'double' unexpected
src\path.cpp(304) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(305) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(305) : error C2062: type 'double' unexpected
src\path.cpp(305) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(303) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(304) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(305) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(338) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(371) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(371) : error C2062: type 'double' unexpected
src\path.cpp(371) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(372) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(372) : error C2062: type 'double' unexpected
src\path.cpp(372) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(373) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(373) : error C2062: type 'double' unexpected
src\path.cpp(373) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(374) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(374) : error C2062: type 'double' unexpected
src\path.cpp(374) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(375) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(375) : error C2062: type 'double' unexpected
src\path.cpp(375) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(376) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(376) : error C2062: type 'double' unexpected
src\path.cpp(376) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(371) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(372) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(373) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(374) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(375) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(376) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(468) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(468) : error C2062: type 'double' unexpected
src\path.cpp(468) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(469) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(469) : error C2062: type 'double' unexpected
src\path.cpp(469) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(470) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(470) : error C2062: type 'double' unexpected
src\path.cpp(470) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(471) : error C2039: 'numeric_limits' : is not a member of 'std'
src\path.cpp(471) : error C2062: type 'double' unexpected
src\path.cpp(471) : error C2039: 'infinity' : is not a member of 'operator``global namespace'''
src\path.cpp(468) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(469) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(470) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(471) : error C3861: 'numeric_limits': identifier not found, even with argument-dependent lookup
src\path.cpp(526) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(826) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(992) : error C2146: syntax error : missing ')' before identifier 'or'
src\path.cpp(991) : error C3861: 'not': identifier not found, even with argument-dependent lookup
src\path.cpp(994) : error C2059: syntax error : ')'
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Actually I do use VS2003 for the releases. I haven’t tried a build in a while, but I did have to add some ifdef’s while building that last release. You can see these changes here:

http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/ttconv/ttutil.cpp?revision=3953&view=markup

  • Charlie
···

On Thu, Apr 17, 2008 at 8:28 AM, Michael Droettboom <mdroe@…86…> wrote:

Unfortunately, you’re using a compiler I don’t have access to. I don’t

think even the guy that makes the Windows releases (Charlie Moad) uses

Visual Studio 2003. That is not to say we don’t want VS2003 to work,

just that it unfortunately doesn’t get much testing and you’re hitting

the bleeding edge here.

If you add –

#include

to the top of path.cpp, does that resolve the issue?

If not, we may need to do some namespace mangling on VS2003 –

Microsoft’s docs don’t seem to explicitly put numeric_limits in the

std:: namespace, but in my past experience, std:: is often a synonym for

:: in Visual Studio.

Cheers,

Mike

Martin Spacek wrote:

I just tried reverting to some older revs. r4802 (0.91.2 release) builds fine. r4817, where the transforms branch was merged in, doesn’t, and gives what looks like the same error (see below) as the current revision (see previous post). I think r4817 is also the first time the file _path.cpp shows up in the trunk.

Martin

C:\home\mspacek\Desktop\Work\matplotlib>python setup.py build_ext --inplace --force

============================================================================

BUILDING MATPLOTLIB

        matplotlib: 0.91.2svn
            python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
                    v.1310 32 bit (Intel)]
          platform: win32
   Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES

             numpy: 1.0.5.dev5035
         freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES

            libpng: found, but unknown version (no pkg-config)
           Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
          wxPython: [2.8.6.0](http://2.8.6.0)
                    * WxAgg extension not required for wxPython >= 2.8
              Gtk+: no
                    * Building for Gtk+ requires pygtk; you must be able
                    * to "import gtk" in your build/install environment
                Qt: no
               Qt4: no
             Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES

          datetime: present, version unknown
          dateutil: matplotlib will provide
              pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES

            dvipng: 1.9
       ghostscript: 'gswin32c' is not recognized as an internal or
                    external command, operable program or batch file.
             latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES

         configobj: matplotlib will provide
  enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

============================================================================

running build_ext

building ‘matplotlib.ft2font’ extension

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild

\temp.win32-2.5\Release\src/ft2font.obj

ft2font.cpp

src\ft2font.cpp(956) : warning C4244: ‘initializing’ : conversion from ‘FT_Long’ to ‘FT_Bool’, possible loss of data

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil

d\temp.win32-2.5\Release\src/mplutils.obj

mplutils.cpp

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu

ild\temp.win32-2.5\Release\CXX\cxxsupport.obj

cxxsupport.cxx

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /

Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj

cxx_extensions.cxx

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf

ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj

IndirectPythonInterface.cxx

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob

uild\temp.win32-2.5\Release\CXX\cxxextensions.obj

cxxextensions.c

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT

H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib /EXPORT:initft2font build\temp.win32-2.5\Rele

ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\

temp.win32-2.5\Release\CXX\cxx_extensions.obj build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj build\temp.wi

n32-2.5\Release\CXX\cxxextensions.obj /OUT:lib\matplotlib\ft2font.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ft2font.l

ib

Creating library build\temp.win32-2.5\Release\src\ft2font.lib and object build\temp.win32-2.5\Release\src\ft2font.exp

building ‘matplotlib.ttconv’ extension

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/_ttconv.cpp /Fobuild\temp.win32-2.5\Release\src/_ttconv.obj

_ttconv.cpp

src_ttconv.cpp(112) : warning C4101: ‘e’ : unreferenced local variable

src_ttconv.cpp(166) : warning C4101: ‘e’ : unreferenced local variable

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt.o

bj

pprdrv_tt.cpp

ttconv\pprdrv_tt.cpp(143) : warning C4101: ‘e’ : unreferenced local variable

ttconv\pprdrv_tt.cpp(312) : warning C4101: ‘e’ : unreferenced local variable

ttconv\pprdrv_tt.cpp(1136) : warning C4101: ‘e’ : unreferenced local variable

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt2.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt2

.obj

pprdrv_tt2.cpp

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -

IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/ttutil.cpp /Fobuild\temp.win32-2.5\Release\ttconv/ttutil.obj

ttutil.cpp

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT

H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initttconv build\temp.win32-2.5\Release\src/_ttconv.obj

build\temp.win32-2.5\Release\ttconv/pprdrv_tt.obj build\temp.win32-2.5\Release\ttconv/pprdrv_tt2.obj build\temp.win32-2.

5\Release\ttconv/ttutil.obj /OUT:lib\matplotlib\ttconv.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ttconv.lib

Creating library build\temp.win32-2.5\Release\src\ttconv.lib and object build\temp.win32-2.5\Release\src\ttconv.exp

building ‘matplotlib._cntr’ extension

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/cntr.c /Fobu

ild\temp.win32-2.5\Release\src/cntr.obj

cntr.c

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT

H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:init_cntr build\temp.win32-2.5\Release\src/cntr.obj /OUT

:lib\matplotlib_cntr.pyd /IMPLIB:build\temp.win32-2.5\Release\src_cntr.lib

Creating library build\temp.win32-2.5\Release\src_cntr.lib and object build\temp.win32-2.5\Release\src_cntr.exp

building ‘matplotlib.nxutils’ extension

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/nxutils.c /F

obuild\temp.win32-2.5\Release\src/nxutils.obj

nxutils.c

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT

H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initnxutils build\temp.win32-2.5\Release\src/nxutils.obj

/OUT:lib\matplotlib\nxutils.pyd /IMPLIB:build\temp.win32-2.5\Release\src\nxutils.lib

Creating library build\temp.win32-2.5\Release\src\nxutils.lib and object build\temp.win32-2.5\Release\src\nxutils.exp

building ‘matplotlib._path’ extension

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_curves.cpp /Fobuild\temp.win32-2.5\Releas

e\agg24/src/agg_curves.obj

agg_curves.cpp

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_bezier_arc.cpp /Fobuild\temp.win32-2.5\Re

lease\agg24/src/agg_bezier_arc.obj

agg_bezier_arc.cpp

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_trans_affine.cpp /Fobuild\temp.win32-2.5\

Release\agg24/src/agg_trans_affine.obj

agg_trans_affine.cpp

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_vcgen_stroke.cpp /Fobuild\temp.win32-2.5\

Release\agg24/src/agg_vcgen_stroke.obj

agg_vcgen_stroke.cpp

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobuild\temp.win32-2.5\Release\CXX\

cxxsupport.obj

cxxsupport.cxx

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /Fobuild\temp.win32-2.5\Release\

CXX\cxx_extensions.obj

cxx_extensions.cxx

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterface.cxx /Fobuild\temp.win32-2.5

\Release\CXX\IndirectPythonInterface.obj

IndirectPythonInterface.cxx

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fobuild\temp.win32-2.5\Release\CXX

\cxxextensions.obj

cxxextensions.c

C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p

ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg

24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o

bj

path.cpp

c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(82) : warning C4800: ‘PyArrayObject *’ : forcing valu

e to bool ‘true’ or ‘false’ (performance warning)

src\path.cpp(302) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(302) : error C2065: ‘numeric_limits’ : undeclared identifier

src\path.cpp(302) : error C2062: type ‘double’ unexpected

src\path.cpp(302) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(303) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(303) : error C2062: type ‘double’ unexpected

src\path.cpp(303) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(304) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(304) : error C2062: type ‘double’ unexpected

src\path.cpp(304) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(305) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(305) : error C2062: type ‘double’ unexpected

src\path.cpp(305) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(303) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(304) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(305) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(338) : warning C4800: ‘long’ : forcing value to bool ‘true’ or ‘false’ (performance warning)

src\path.cpp(371) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(371) : error C2062: type ‘double’ unexpected

src\path.cpp(371) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(372) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(372) : error C2062: type ‘double’ unexpected

src\path.cpp(372) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(373) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(373) : error C2062: type ‘double’ unexpected

src\path.cpp(373) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(374) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(374) : error C2062: type ‘double’ unexpected

src\path.cpp(374) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(375) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(375) : error C2062: type ‘double’ unexpected

src\path.cpp(375) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(376) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(376) : error C2062: type ‘double’ unexpected

src\path.cpp(376) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(371) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(372) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(373) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(374) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(375) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(376) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(468) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(468) : error C2062: type ‘double’ unexpected

src\path.cpp(468) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(469) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(469) : error C2062: type ‘double’ unexpected

src\path.cpp(469) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(470) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(470) : error C2062: type ‘double’ unexpected

src\path.cpp(470) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(471) : error C2039: ‘numeric_limits’ : is not a member of ‘std’

src\path.cpp(471) : error C2062: type ‘double’ unexpected

src\path.cpp(471) : error C2039: ‘infinity’ : is not a member of ‘operator``global namespace’’’

src\path.cpp(468) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(469) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(470) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(471) : error C3861: ‘numeric_limits’: identifier not found, even with argument-dependent lookup

src\path.cpp(526) : warning C4800: ‘long’ : forcing value to bool ‘true’ or ‘false’ (performance warning)

src\path.cpp(826) : warning C4800: ‘long’ : forcing value to bool ‘true’ or ‘false’ (performance warning)

src\path.cpp(992) : error C2146: syntax error : missing ‘)’ before identifier ‘or’

src\path.cpp(991) : error C3861: ‘not’: identifier not found, even with argument-dependent lookup

src\path.cpp(994) : error C2059: syntax error : ‘)’

error: command ‘“C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe”’ failed with exit status 2


This SF.net email is sponsored by the 2008 JavaOne(SM) Conference

Don’t miss this year’s exciting event. There’s still time to save $100.

Use priority code J8TL2D2.

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Michael Droettboom

Science Software Branch

Operations and Engineering Division

Space Telescope Science Institute

Operated by AURA for NASA


This SF.net email is sponsored by the 2008 JavaOne(SM) Conference

Don’t miss this year’s exciting event. There’s still time to save $100.

Use priority code J8TL2D2.

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Michael,

Sorry for the delay. Adding:

#include <limits>

to the top of path.cpp in rev5055 helps - most of the errors have disappeared, but I still get this:

running build_ext
building 'matplotlib._path' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(98) : warning C4800: 'PyArrayObject *' : forcing valu
e to bool 'true' or 'false' (performance warning)
src\path.cpp(340) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(535) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(835) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(1001) : error C2146: syntax error : missing ')' before identifier 'or'
src\path.cpp(1000) : error C3861: 'not': identifier not found, even with argument-dependent lookup
src\path.cpp(1003) : error C2059: syntax error : ')'
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

Looks like VS2003 is picky about using not and or. So I replaced them with ! and ||, which helped. Now I get this error:

running build_ext
building 'matplotlib._path' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(98) : warning C4800: 'PyArrayObject *' : forcing valu
e to bool 'true' or 'false' (performance warning)
src\path.cpp(340) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(535) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(835) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(160) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
        c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(150) : while compiling class-template member
function 'unsigned int SimplifyPath<VertexSource>::vertex(double *,double *)'
        with
        [
            VertexSource=transformed_path_t
        ]
        src\path.cpp(1115) : see reference to class template instantiation 'SimplifyPath<VertexSource>' being compiled
        with
        [
            VertexSource=transformed_path_t
        ]
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(161) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(217) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(218) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

I guess that would require another #include statement somewhere? I'm obviously not a C/C++ guru...

Martin

Michael Droettboom wrote:

···

Unfortunately, you're using a compiler I don't have access to. I don't think even the guy that makes the Windows releases (Charlie Moad) uses Visual Studio 2003. That is not to say we don't want VS2003 to work, just that it unfortunately doesn't get much testing and you're hitting the bleeding edge here.

If you add --

#include <limits>

to the top of path.cpp, does that resolve the issue?

If not, we may need to do some namespace mangling on VS2003 -- Microsoft's docs don't seem to *explicitly* put numeric_limits in the std:: namespace, but in my past experience, std:: is often a synonym for :: in Visual Studio.

Cheers,
Mike

Martin Spacek wrote:

Michael,

Sorry for the delay. Adding:

#include <limits>

to the top of path.cpp in rev5055 helps - most of the errors have disappeared, but I still get this:

running build_ext
building 'matplotlib._path' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(98) : warning C4800: 'PyArrayObject *' : forcing valu
e to bool 'true' or 'false' (performance warning)
src\path.cpp(340) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(535) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(835) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(1001) : error C2146: syntax error : missing ')' before identifier 'or'
src\path.cpp(1000) : error C3861: 'not': identifier not found, even with argument-dependent lookup
src\path.cpp(1003) : error C2059: syntax error : ')'
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

Looks like VS2003 is picky about using not and or. So I replaced them with ! and ||, which helped. Now I get this error:

Sorry about that. That comes from switching between Python and C/C++ all the time. I have updated SVN to reflect this.

running build_ext
building 'matplotlib._path' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(98) : warning C4800: 'PyArrayObject *' : forcing valu
e to bool 'true' or 'false' (performance warning)
src\path.cpp(340) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(535) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(835) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(160) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
       c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(150) : while compiling class-template member
function 'unsigned int SimplifyPath<VertexSource>::vertex(double *,double *)'
       with
       [
           VertexSource=transformed_path_t
       ]
       src\path.cpp(1115) : see reference to class template instantiation 'SimplifyPath<VertexSource>' being compiled
       with
       [
           VertexSource=transformed_path_t
       ]
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(161) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(217) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
c:\home\mspacek\Desktop\Work\matplotlib\src\agg_py_path_iterator.h(218) : error C3861: 'round': identifier not found, ev
en with argument-dependent lookup
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

I guess that would require another #include statement somewhere? I'm obviously not a C/C++ guru...

round() is defined in math.h so adding

#include <math.h>

to the top of the file might fix it.

Thanks for your patience!

Mike

···

Martin

Michael Droettboom wrote:

Unfortunately, you're using a compiler I don't have access to. I don't think even the guy that makes the Windows releases (Charlie Moad) uses Visual Studio 2003. That is not to say we don't want VS2003 to work, just that it unfortunately doesn't get much testing and you're hitting the bleeding edge here.

If you add --

#include <limits>

to the top of path.cpp, does that resolve the issue?

If not, we may need to do some namespace mangling on VS2003 -- Microsoft's docs don't seem to *explicitly* put numeric_limits in the std:: namespace, but in my past experience, std:: is often a synonym for :: in Visual Studio.

Cheers,
Mike

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

round() is defined in math.h so adding

#include <math.h>

to the top of the file might fix it.

Thanks for your patience!

Mike

Just tried the latest rev where you've added <math.h> to the top, still get the same error. Apparently round isn't defined in math.h:

C:\home\mspacek\Desktop\mpl>python setup.py build_ext

···

============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.98pre
                python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
                        v.1310 32 bit (Intel)]
              platform: win32
       Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
                 numpy: 1.1.0.dev5061
             freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
               Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
              wxPython: 2.8.6.0
                        * WxAgg extension not required for wxPython >= 2.8
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
                    Qt: no
                   Qt4: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
                dvipng: 1.9
           ghostscript: 'gswin32c' is not recognized as an internal or
                        external command, operable program or batch file.
                 latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
             configobj: matplotlib will provide
      enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

running build_ext
building 'matplotlib.ft2font' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild
\temp.win32-2.5\Release\src/ft2font.obj
ft2font.cpp
src\ft2font.cpp(947) : warning C4244: 'initializing' : conversion from 'FT_Long' to 'FT_Bool', possible loss of data
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil
d\temp.win32-2.5\Release\src/mplutils.obj
mplutils.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu
ild\temp.win32-2.5\Release\CXX\cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /
Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf
ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob
uild\temp.win32-2.5\Release\CXX\cxxextensions.obj
cxxextensions.c
creating build\lib.win32-2.5
creating build\lib.win32-2.5\matplotlib
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib /EXPORT:initft2font build\temp.win32-2.5\Rele
ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\
temp.win32-2.5\Release\CXX\cxx_extensions.obj build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj build\temp.wi
n32-2.5\Release\CXX\cxxextensions.obj /OUT:build\lib.win32-2.5\matplotlib\ft2font.pyd /IMPLIB:build\temp.win32-2.5\Relea
se\src\ft2font.lib
   Creating library build\temp.win32-2.5\Release\src\ft2font.lib and object build\temp.win32-2.5\Release\src\ft2font.exp

building 'matplotlib.ttconv' extension
creating build\temp.win32-2.5\Release\ttconv
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/_ttconv.cpp /Fobuild\temp.win32-2.5\Release\src/_ttconv.obj
_ttconv.cpp
src\_ttconv.cpp(112) : warning C4101: 'e' : unreferenced local variable
src\_ttconv.cpp(166) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt.o
bj
pprdrv_tt.cpp
ttconv\pprdrv_tt.cpp(143) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(312) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(1136) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt2.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt2
.obj
pprdrv_tt2.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/ttutil.cpp /Fobuild\temp.win32-2.5\Release\ttconv/ttutil.obj
ttutil.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initttconv build\temp.win32-2.5\Release\src/_ttconv.obj
build\temp.win32-2.5\Release\ttconv/pprdrv_tt.obj build\temp.win32-2.5\Release\ttconv/pprdrv_tt2.obj build\temp.win32-2.
5\Release\ttconv/ttutil.obj /OUT:build\lib.win32-2.5\matplotlib\ttconv.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ttco
nv.lib
   Creating library build\temp.win32-2.5\Release\src\ttconv.lib and object build\temp.win32-2.5\Release\src\ttconv.exp
building 'matplotlib._cntr' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/cntr.c /Fobu
ild\temp.win32-2.5\Release\src/cntr.obj
cntr.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:init_cntr build\temp.win32-2.5\Release\src/cntr.obj /OUT
:build\lib.win32-2.5\matplotlib\_cntr.pyd /IMPLIB:build\temp.win32-2.5\Release\src\_cntr.lib
   Creating library build\temp.win32-2.5\Release\src\_cntr.lib and object build\temp.win32-2.5\Release\src\_cntr.exp
building 'matplotlib.nxutils' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/nxutils.c /F
obuild\temp.win32-2.5\Release\src/nxutils.obj
nxutils.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initnxutils build\temp.win32-2.5\Release\src/nxutils.obj
/OUT:build\lib.win32-2.5\matplotlib\nxutils.pyd /IMPLIB:build\temp.win32-2.5\Release\src\nxutils.lib
   Creating library build\temp.win32-2.5\Release\src\nxutils.lib and object build\temp.win32-2.5\Release\src\nxutils.exp

building 'matplotlib._path' extension
creating build\temp.win32-2.5\Release\agg24
creating build\temp.win32-2.5\Release\agg24\src
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_curves.cpp /Fobuild\temp.win32-2.5\Releas
e\agg24/src/agg_curves.obj
agg_curves.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_bezier_arc.cpp /Fobuild\temp.win32-2.5\Re
lease\agg24/src/agg_bezier_arc.obj
agg_bezier_arc.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_trans_affine.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_trans_affine.obj
agg_trans_affine.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_vcgen_stroke.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_vcgen_stroke.obj
agg_vcgen_stroke.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(98) : warning C4800: 'PyArrayObject *' : forcing value to bool 't
rue' or 'false' (performance warning)
src\path.cpp(343) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(538) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(838) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(160) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
        c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(150) : while compiling class-template member function 'un
signed int SimplifyPath<VertexSource>::vertex(double *,double *)'
        with
        [
            VertexSource=transformed_path_t
        ]
        src\path.cpp(1118) : see reference to class template instantiation 'SimplifyPath<VertexSource>' being compiled
        with
        [
            VertexSource=transformed_path_t
        ]
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(161) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(217) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(218) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

It doesn't appear to exist in VS2008 -- at least I can't find it in the online docs. Maybe someone else can enlighten me.

In the meantime, I just wrote my own round function and switched to use that. Please update from SVN and let me know how it goes. And again, thank you for your patience.

Cheers,
Mike

Martin Spacek wrote:

···

round() is defined in math.h so adding

#include <math.h>

to the top of the file might fix it.

Thanks for your patience!

Mike

Just tried the latest rev where you've added <math.h> to the top, still get the same error. Apparently round isn't defined in math.h:

C:\home\mspacek\Desktop\mpl>python setup.py build_ext

BUILDING MATPLOTLIB
           matplotlib: 0.98pre
               python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
                       v.1310 32 bit (Intel)]
             platform: win32
      Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
                numpy: 1.1.0.dev5061
            freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
               libpng: found, but unknown version (no pkg-config)
              Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
             wxPython: 2.8.6.0
                       * WxAgg extension not required for wxPython >= 2.8
                 Gtk+: no
                       * Building for Gtk+ requires pygtk; you must be able
                       * to "import gtk" in your build/install environment
                   Qt: no
                  Qt4: no
                Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
             datetime: present, version unknown
             dateutil: matplotlib will provide
                 pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
               dvipng: 1.9
          ghostscript: 'gswin32c' is not recognized as an internal or
                       external command, operable program or batch file.
                latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
            configobj: matplotlib will provide
     enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

running build_ext
building 'matplotlib.ft2font' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild
\temp.win32-2.5\Release\src/ft2font.obj
ft2font.cpp
src\ft2font.cpp(947) : warning C4244: 'initializing' : conversion from 'FT_Long' to 'FT_Bool', possible loss of data
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil
d\temp.win32-2.5\Release\src/mplutils.obj
mplutils.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu
ild\temp.win32-2.5\Release\CXX\cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /
Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf
ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob
uild\temp.win32-2.5\Release\CXX\cxxextensions.obj
cxxextensions.c
creating build\lib.win32-2.5
creating build\lib.win32-2.5\matplotlib
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib /EXPORT:initft2font build\temp.win32-2.5\Rele
ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\
temp.win32-2.5\Release\CXX\cxx_extensions.obj build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj build\temp.wi
n32-2.5\Release\CXX\cxxextensions.obj /OUT:build\lib.win32-2.5\matplotlib\ft2font.pyd /IMPLIB:build\temp.win32-2.5\Relea
se\src\ft2font.lib
  Creating library build\temp.win32-2.5\Release\src\ft2font.lib and object build\temp.win32-2.5\Release\src\ft2font.exp

building 'matplotlib.ttconv' extension
creating build\temp.win32-2.5\Release\ttconv
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/_ttconv.cpp /Fobuild\temp.win32-2.5\Release\src/_ttconv.obj
_ttconv.cpp
src\_ttconv.cpp(112) : warning C4101: 'e' : unreferenced local variable
src\_ttconv.cpp(166) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt.o
bj
pprdrv_tt.cpp
ttconv\pprdrv_tt.cpp(143) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(312) : warning C4101: 'e' : unreferenced local variable
ttconv\pprdrv_tt.cpp(1136) : warning C4101: 'e' : unreferenced local variable
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/pprdrv_tt2.cpp /Fobuild\temp.win32-2.5\Release\ttconv/pprdrv_tt2
.obj
pprdrv_tt2.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -
IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpttconv/ttutil.cpp /Fobuild\temp.win32-2.5\Release\ttconv/ttutil.obj
ttutil.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initttconv build\temp.win32-2.5\Release\src/_ttconv.obj
build\temp.win32-2.5\Release\ttconv/pprdrv_tt.obj build\temp.win32-2.5\Release\ttconv/pprdrv_tt2.obj build\temp.win32-2.
5\Release\ttconv/ttutil.obj /OUT:build\lib.win32-2.5\matplotlib\ttconv.pyd /IMPLIB:build\temp.win32-2.5\Release\src\ttco
nv.lib
  Creating library build\temp.win32-2.5\Release\src\ttconv.lib and object build\temp.win32-2.5\Release\src\ttconv.exp
building 'matplotlib._cntr' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/cntr.c /Fobu
ild\temp.win32-2.5\Release\src/cntr.obj
cntr.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:init_cntr build\temp.win32-2.5\Release\src/cntr.obj /OUT
:build\lib.win32-2.5\matplotlib\_cntr.pyd /IMPLIB:build\temp.win32-2.5\Release\src\_cntr.lib
  Creating library build\temp.win32-2.5\Release\src\_cntr.lib and object build\temp.win32-2.5\Release\src\_cntr.exp
building 'matplotlib.nxutils' extension
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tcsrc/nxutils.c /F
obuild\temp.win32-2.5\Release\src/nxutils.obj
nxutils.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild /EXPORT:initnxutils build\temp.win32-2.5\Release\src/nxutils.obj
/OUT:build\lib.win32-2.5\matplotlib\nxutils.pyd /IMPLIB:build\temp.win32-2.5\Release\src\nxutils.lib
  Creating library build\temp.win32-2.5\Release\src\nxutils.lib and object build\temp.win32-2.5\Release\src\nxutils.exp

building 'matplotlib._path' extension
creating build\temp.win32-2.5\Release\agg24
creating build\temp.win32-2.5\Release\agg24\src
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_curves.cpp /Fobuild\temp.win32-2.5\Releas
e\agg24/src/agg_curves.obj
agg_curves.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_bezier_arc.cpp /Fobuild\temp.win32-2.5\Re
lease\agg24/src/agg_bezier_arc.obj
agg_bezier_arc.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_trans_affine.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_trans_affine.obj
agg_trans_affine.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpagg24/src/agg_vcgen_stroke.cpp /Fobuild\temp.win32-2.5\
Release\agg24/src/agg_vcgen_stroke.obj
agg_vcgen_stroke.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\bin\Python25\lib\site-p
ackages\numpy\core\include -Iwin32_static\include -I. -IC:\bin\Python25\lib\site-packages\numpy\core\include -Isrc -Iagg
24/include -I. -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/path.cpp /Fobuild\temp.win32-2.5\Release\src/path.o
bj
path.cpp
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(98) : warning C4800: 'PyArrayObject *' : forcing value to bool 't
rue' or 'false' (performance warning)
src\path.cpp(343) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(538) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
src\path.cpp(838) : warning C4800: 'long' : forcing value to bool 'true' or 'false' (performance warning)
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(160) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
       c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(150) : while compiling class-template member function 'un
signed int SimplifyPath<VertexSource>::vertex(double *,double *)'
       with
       [
           VertexSource=transformed_path_t
       ]
       src\path.cpp(1118) : see reference to class template instantiation 'SimplifyPath<VertexSource>' being compiled
       with
       [
           VertexSource=transformed_path_t
       ]
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(161) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(217) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
c:\home\mspacek\Desktop\mpl\src\agg_py_path_iterator.h(218) : error C3861: 'round': identifier not found, even with argu
ment-dependent lookup
error: command '"C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

It worked! I had to make a few changes, and there's lots of warnings, but it's now compiling. I've attached a patch. In backend_agg.cpp, I had to replace an 'and' with '&&', and I had to replace a few 'round()' calls with your 'my_round()'. I don't think my_round is directly being included in backend_agg.cpp, it's still hanging around from its definition in agg_py_path_iterator.h. Don't know if something should be done about that.

I've also attached the full output with all the warnings.

Thanks Michael!

Martin

Michael Droettboom wrote:

mspacek_vs2003.patch (1.15 KB)

mspacek_vs2003_warnings.log (43.9 KB)

···

It doesn't appear to exist in VS2008 -- at least I can't find it in the online docs. Maybe someone else can enlighten me.

In the meantime, I just wrote my own round function and switched to use that. Please update from SVN and let me know how it goes. And again, thank you for your patience.

Cheers,
Mike

Thanks. Your suggested changes (slightly modified) are in SVN r5070. Thanks for the warning output -- I'll try to tackle some of those as well.

Cheers,
Mike

Martin Spacek wrote:

···

It worked! I had to make a few changes, and there's lots of warnings, but it's now compiling. I've attached a patch. In backend_agg.cpp, I had to replace an 'and' with '&&', and I had to replace a few 'round()' calls with your 'my_round()'. I don't think my_round is directly being included in backend_agg.cpp, it's still hanging around from its definition in agg_py_path_iterator.h. Don't know if something should be done about that.

I've also attached the full output with all the warnings.

Thanks Michael!

Martin

Michael Droettboom wrote:

It doesn't appear to exist in VS2008 -- at least I can't find it in the online docs. Maybe someone else can enlighten me.

In the meantime, I just wrote my own round function and switched to use that. Please update from SVN and let me know how it goes. And again, thank you for your patience.

Cheers,
Mike

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA