kedmegas / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Compilation of Python extension under GCC 4.6 #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
thanks. I will check and fix this.

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

GoogleCodeExporter commented 9 years ago
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