{"action":"created","issue":{"url":"https://api.github.com/repos/esa/pagmo/issues/151","labels_url":"https://api.github.com/repos/esa/pagmo/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/esa/pagmo/issues/151/comments","events_url":"https://api.github.com/repos/esa/pagmo/issues/151/events","html_url":"https://github.com/esa/pagmo/pull/151","id":72147085,"number":151,"title":"First attempt at fixing the includes for MinGW64.","user":{"login":"bluescarni","id":623038,"avatar_url":"https://avatars.githubusercontent.com/u/623038?v=3","gravatar_id":"","url":"https://api.github.com/users/bluescarni","html_url":"https://github.com/bluescarni","followers_url":"https://api.github.com/users/bluescarni/followers","following_url":"https://api.github.com/users/bluescarni/following{/other_user}","gists_url":"https://api.github.com/users/bluescarni/gists{/gist_id}","starred_url":"https://api.github.com/users/bluescarni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluescarni/subscriptions","organizations_url":"https://api.github.com/users/bluescarni/orgs","repos_url":"https://api.github.com/users/bluescarni/repos","events_url":"https://api.github.com/users/bluescarni/events{/privacy}","received_events_url":"https://api.github.com/users/bluescarni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T12:45:11Z","updated_at":"2015-04-30T12:46:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/esa/pagmo/pulls/151","html_url":"https://github.com/esa/pagmo/pull/151","diff_url":"https://github.com/esa/pagmo/pull/151.diff","patch_url":"https://github.com/esa/pagmo/pull/151.patch"},"body":"So there is an issue of bad interaction between the Python headers and the standard math headers. See for instance:\r\n\r\nhttp://mail.python.org/pipermail/python-list/2004-March/907592.html\r\n\r\nThis shows up when compiling in MinGW64. The fix here is to include ``cmath`` **before** ``Python.h``.\r\n\r\nHowever, I have some vague recollections that in Linux (and/or maybe OSX) one must actually reverse the inclusion order (first ``Python.h``, then ``cmath``). Someone should check if this is actually true, and, in such case, probably an ``#ifdef`` guard that sets the correct order on each platform should be used instead."},"comment":{"url":"https://api.github.com/repos/esa/pagmo/issues/comments/97759629","html_url":"https://github.com/esa/pagmo/pull/151#issuecomment-97759629","issue_url":"https://api.github.com/repos/esa/pagmo/issues/151","id":97759629,"user":{"login":"bluescarni","id":623038,"avatar_url":"https://avatars.githubusercontent.com/u/623038?v=3","gravatar_id":"","url":"https://api.github.com/users/bluescarni","html_url":"https://github.com/bluescarni","followers_url":"https://api.github.com/users/bluescarni/followers","following_url":"https://api.github.com/users/bluescarni/following{/other_user}","gists_url":"https://api.github.com/users/bluescarni/gists{/gist_id}","starred_url":"https://api.github.com/users/bluescarni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluescarni/subscriptions","organizations_url":"https://api.github.com/users/bluescarni/orgs","repos_url":"https://api.github.com/users/bluescarni/repos","events_url":"https://api.github.com/users/bluescarni/events{/privacy}","received_events_url":"https://api.github.com/users/bluescarni/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T12:46:12Z","updated_at":"2015-04-30T12:46:12Z","body":"Actually the link is:\r\n\r\nhttp://mail.python.org/pipermail/new-bugs-announce/2011-March/010395.html"}}