victormocioiu / scipy-cluster

Automatically exported from code.google.com/p/scipy-cluster
Other
0 stars 0 forks source link

cluster.c includes malloc.h but should include stdlib.h #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Running python setup.py:
hcluster/cluster.c:90:20: error: malloc.h: No such file or directory

Changing line 90 to 

#include <stdlib.h> 

and it compiles nicely. Still have to test the whole functionality though ;)

BTW I'm on Mac OS 10.5.2 but this should apply to all recent version.
See also: http://developer.apple.com/technotes/tn2002/tn2071.html

Kind regards,
Daniel

Original issue reported on code.google.com by gloeckne...@gmail.com on 22 Mar 2008 at 3:45

GoogleCodeExporter commented 8 years ago
I forgot about that malloc.h is non-standard. It's too bad linux allows it! I've
changed it and checked it into SVN. Don't really think it warrants a release 
until I
get a few other changes in first.

Thanks!

Damian Eads

Original comment by damian.e...@gmail.com on 24 Mar 2008 at 7:40