[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread miss-islington
miss-islington added the comment: New changeset c046d6b6187e4de98a29e67ccbfd9b1b8790ee2f by Miss Islington (bot) in branch '3.7': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/c046d6b6187e4de98a29e67ccbfd9b1b8790ee2f -- n

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread miss-islington
miss-islington added the comment: New changeset c046d6b6187e4de98a29e67ccbfd9b1b8790ee2f by Miss Islington (bot) in branch '3.7': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/c046d6b6187e4de98a29e67ccbfd9b1b8790ee2f -- n

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt McCormick) in branch '2.7': bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283) https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt McCormick) in branch 'master': bpo-11566: Extension build errors on Windows for _hypot (GH-11283) https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c8c4af45f71

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-24 Thread Matthew McCormick
Change by Matthew McCormick : -- pull_requests: +10529 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-22 Thread Kay Hayen
Change by Kay Hayen : -- nosy: -Kay.Hayen __ Python tracker __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-22 Thread Matthew McCormick
Matthew McCormick added the comment: > What current 3.x versions have this issue? This issue was opened against 2.7. Yes, this is just for 2.7. -- versions: -Python 3.8 __ Python tracker _

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: What current 3.x versions have this issue? This issue was opened against 2.7. This was changed to 3.3 in 2013 (3.3 should have just been added with control-click). I reverted to 2.7 and tentatively added 3.8, but this needs to be checked. The PR is again

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-22 Thread Steve Dower
Steve Dower added the comment: The change in PR 880 looks fine to me. I dislike defining names without a Py prefix in public headers. And PRs are not where we do general discussion or ping for attention. Make sure the nosy list includes the relevant experts (in this case probably me) and pos

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-12-21 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2018-03-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- nosy: +jdemeyer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2017-03-28 Thread Matthew McCormick
Matthew McCormick added the comment: I have created a pull request for this issue, https://github.com/python/cpython/pull/880 that addresses extension builds for both MinGWPy and the Microsoft Visual C++ Compiler for Python 2.7. -- nosy: +thewtex ___

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2017-03-28 Thread Matthew McCormick
Changes by Matthew McCormick : -- pull_requests: +780 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2016-08-15 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: -petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2016-08-15 Thread Pas
Changes by Pas : -- nosy: +pas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2016-08-11 Thread Kay Hayen
Kay Hayen added the comment: This also affects Python2.7.12 on Windows with latest MinGW. I think something similar needs to be added for GCC version check: /* VS 2010 and above already defines hypot as _hypot */ #if _MSC_VER < 1600 #define hypot _hypot #endif Not sure which gcc version first

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2013-10-24 Thread Tim Golden
Changes by Tim Golden : -- nosy: -tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2013-10-24 Thread pokulo
pokulo added the comment: uning python 3.3 mingw4.8 both -std=gnu++0x and -std=c++11 cause still the same error. -- nosy: +pokulo versions: +Python 3.3 -Python 2.7 ___ Python tracker __

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-11-14 Thread Václav Šmilauer
Václav Šmilauer added the comment: Martin, I know it is not a proper fix. OTOH, Python is not the only project which "recommends" its header be included as first. I don't know if it is an issue for Python 3.x; will try to test that. This bug, though, is clearly reported about Python 2.7, which

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-11-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: In general, including standard library headers before including Python.h is not recommended, since it may break binary compatibility across object files. So the proposed work-around may also cause harm. -- ___ Pyth

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Is this also an issue for Python 3.x? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Václav Šmilauer
Václav Šmilauer added the comment: Just for the record: a workaround (mentioned at http://boost.2283326.n4.nabble.com/Boost-Python-Compile-Error-s-GCC-via-MinGW-w64-td3165793.html#a3166760) is to always include before . -- ___ Python tracker

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Mark Dickinson
Mark Dickinson added the comment: I think there's something generally smelly about the way hypot is handled; this isn't the only hypot-related build issue that's turned up. I'm wondering whether the code can be reworked to deal with hypot in the same way that functions like log1p, etc. are d

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-29 Thread Václav Šmilauer
Václav Šmilauer added the comment: I would like to second Ralf here. I am having the same issue with mingw's gcc 4.7 and -std=c++11. -- nosy: +eudoxos ___ Python tracker ___ ___

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: yes, mingw. it may have some problems and this is one of them! -- ___ Python tracker ___ ___ Python-bu

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Petri Lehtinen
Petri Lehtinen added the comment: On MinGW? I'm not a Windows user, but IIRC building extensions with gcc on MinGW has many problems and isn't officially supported. -- components: +Windows -None nosy: +brian.curtin, loewis, tim.golden ___ Python trac

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: Sorry, if I haven't been clear enough. This happens on windows when compiling extensions with "g++ -std=gnu++0x ..." -- status: pending -> open ___ Python tracker __

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Petri Lehtinen
Petri Lehtinen added the comment: Cannot reproduce, and cannot find the define in pyconfig.h. It's in PC/pyconfig.h, but shouldn't affect compiling with gcc. -- nosy: +petri.lehtinen status: open -> pending ___ Python tracker

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2011-03-15 Thread Ralf Schmitt
New submission from Ralf Schmitt : The following program #include #include results in the following error when compiled with g++ and -std=gnu++0x: $ g++ -std=gnu++0x -c t.cc -I /c/Python27/Include In file included from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/include/c++/cmath:629