> 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
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users