Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of Python extension under GCC 4.6 #47

Closed
GoogleCodeExporter opened this issue Nov 28, 2015 · 2 comments
Closed

Compilation of Python extension under GCC 4.6 #47

GoogleCodeExporter opened this issue Nov 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Trying to build the Python extension using GCC with a version higher than 
4.5.

What is the expected output? What do you see instead?

Expected is the proper building of the extension. Instead the process runs into 
several errors of the following type *error: ‘NULL’ was not declared in 
this scope* leading to gcc failing with exit status 1.

What version of the product are you using? On what operating system?

poly2tri 0.3.3 Python extension compiled with GCC 4.6.2 under MinGW

Please provide any additional information below.

According to 
http://stackoverflow.com/questions/462165/error-null-was-not-declared-in-this-sc
ope this can be traced back to GCC 4.6 no longer accepting the NULL constant. 
To use it the following statement needs to be included:

#include <cstddef>

I did so in sweep_context.h and the extension was built as it should be.

Original issue reported on code.google.com by reinhold...@googlemail.com on 9 Mar 2012 at 8:24

@GoogleCodeExporter
Copy link
Author

thanks. I will check and fix this.

Original comment by mason.gr...@gmail.com on 4 Apr 2012 at 1:19

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Anyone is welcome to submit a patch. C++ and Java are now the officially 
supported languages.

Original comment by mason.gr...@gmail.com on 7 Apr 2012 at 5:14

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant