On Wed, 13 Apr 2011 14:46:05 +0200, Gregor Thalhammer <[email protected]> wrote: > Hi all, > > I had troubles building a recent git version (2011.1beta3) of pyopencl on Mac > OS X 10.6.7 (Macbook Pro), Python 2.7.1 from python.org. Compiling > wrap_mempool.cpp gave a couple of errors like: > > /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/localefwd.h:58:34: > error: macro "isspace" passed 2 arguments, but takes just 1 > > There seem to be OS X specific macro redefinitions in Python.h (more > precisely: pyport.h) of 2.7 that trigger these errors. As a workaround I > found that after adding > > #include "Python.h" > > at the very beginning of wrap_mempool.cpp everything compiles > fine. Perhaps there are better ways to fix this problems (rearrange > order or includes), I didn't try.
It won't hurt anything. I've done this in git. Thanks for the report. Andreas
pgpKn49xiYJUe.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
