Message207894
In pyconfig.h (line 216), there is this line:
#define hypot _hypot
This conflicts with the definition of _hypot that ships with VS2010 (math.h, line 161):
static __inline double __CRTDECL hypot(_In_ double _X, _In_ double _Y)
The result of the redefinition is that the following warning occurs during compilation:
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(162): warning C4211: nonstandard extension used : redefined extern to static
When compiling with warnings being treated as errors, this will obviously result in failed builds.
The recommendation from Microsoft (see http://connect.microsoft.com/VisualStudio/feedback/details/633988/warning-in-math-h-line-162-re-nonstandard-extensions-used) is to change the definition to:
#if _MSC_VER < 1600
#define hypot _hypot
#endif |
|
Date |
User |
Action |
Args |
2014-01-11 03:09:30 | tabrezm | set | recipients:
+ tabrezm |
2014-01-11 03:09:28 | tabrezm | set | messageid: <1389409768.81.0.962130999427.issue20221@psf.upfronthosting.co.za> |
2014-01-11 03:09:28 | tabrezm | link | issue20221 messages |
2014-01-11 03:09:26 | tabrezm | create | |
|