[issue20221] #define hypot _hypot conflicts with existing definition
Brecht Van Lommel
report at bugs.python.org
Tue Jan 28 20:08:41 CET 2014
Brecht Van Lommel added the comment:
For Visual Studio 2013, here's how to redo the problem. Take this simple program:
#include <Python.h>
int main(int argc, char **argv)
{
return (int)hypot(rand(), rand());
}
And compile it:
cl.exe test.c -I include/python3.3 lib/python33.lib /W4
c:\program files (x86)\microsoft visual studio 12.0\vc\include\math.h(566) : warning C4717: '_hypot' : recursive on all control paths, function will cause runtime stack overflow
I don't know about the conditions to get a warning in VS 2010, never tried that version.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20221>
_______________________________________
More information about the Python-bugs-list
mailing list