diego1996 / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

Compiling with weave fails #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With pythonxy 2.6.50 weave fails to compile numerical C++ code with the
following error message:

C:\Python26\lib\site-packages\scipy\weave\blitz/blitz/funcs.h: In static
member function 'static int blitz::Fn_abs<int>::apply(int)':
C:\Python26\lib\site-packages\scipy\weave\blitz/blitz/funcs.h:503: error:
call of overloaded 'abs(int&)' is ambiguous
c:\program
files\pythonxy\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:94:
note: candidates are: double std::abs(double)
c:\program
files\pythonxy\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:98:
note:                 float std::abs(float)
c:\program
files\pythonxy\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:102:
note:                 long double std::abs(long double)
C:\Python26\lib\site-packages\scipy\weave\blitz/blitz/funcs.h: In static
member function 'static long int blitz::Fn_abs<long int>::apply(long int)':
C:\Python26\lib\site-packages\scipy\weave\blitz/blitz/funcs.h:524: error:
'labs' is not a member of 'std'

While weave.test() runs without errors this is a problem, because it
prevents using pythonxy for longer calculations, which could be faster
using weave.

After some searching this might be related to the following bug in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/python-scipy/+bug/302649

Original issue reported on code.google.com by astep...@gmail.com on 6 May 2010 at 11:25

GoogleCodeExporter commented 9 years ago
Can you please provide a test case for this issue (assuming it is still 
relevant)?

Original comment by grizzly.nyo on 19 Apr 2011 at 8:55

GoogleCodeExporter commented 9 years ago
No reply from reporter.

Original comment by grizzly.nyo on 24 Sep 2011 at 7:21