This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author schmir
Recipients schmir
Date 2011-03-15.23:39:14
SpamBayes Score 0.0050399974
Marked as misclassified No
Message-id <1300232356.74.0.516279839285.issue11566@psf.upfronthosting.co.za>
In-reply-to
Content
The following program

#include <Python.h>
#include <cmath>

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:0,
                 from t.cc:2:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/include/c++/tr1_impl/cmath:203:11: error: '::hypot' has not been declared

The problem is, that pyconfig.h has the following define:

#define hypot _hypot

It should probably just be removed when using gcc.
History
Date User Action Args
2011-03-15 23:39:16schmirsetrecipients: + schmir
2011-03-15 23:39:16schmirsetmessageid: <1300232356.74.0.516279839285.issue11566@psf.upfronthosting.co.za>
2011-03-15 23:39:14schmirlinkissue11566 messages
2011-03-15 23:39:14schmircreate