Nasos Dousis <ndou...@gmail.com> added the comment:
Meador et al,
Thanks for your attention to this issue. Just to clarify, I can eliminate
the compile errors by prepending
#include "Python.h"
to any source file with
#include<boost/python.hpp>
Also, my code compiles in Linux, with and without the Python.h header:
$ uname -a
Linux nxx.xx.com 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT 2009
x86_64 x86_64 x86_64 GNU/Linux
with the same flags as before:
cd $(BOOST); ./bootstrap.sh --prefix=$(CURDIR)/$(BOOST)
--with-python-root=$(CURDIR)/$(PYTHON_DIR) --with-python-version=2.7
--with-libraries=mpi
cd $(PYTHON_SRCDIR) ; ./configure --enable-shared
--prefix=$(CURDIR)/$(PYTHON_DIR)
cd $(PYTHON_SRCDIR) ; make -j $(NUMPROC) && make install
Thanks again,
Nasos
----------
Added file: http://bugs.python.org/file21728/unnamed
_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10910>
_______________________________________
Meador et al,<div><br></div><div>Thanks for your attention to this issue.
 Just to clarify, I can eliminate the compile errors by
prepending </div><div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; "><br>
</span></div><div>#<span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; ">include
"Python.h"</span></div><div><span class="Apple-style-span"
style="border-collapse: collapse; font-family: arial, sans-serif; font-size:
13px; "><br>
</span></div><div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; ">to any source file
with </span></div><div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; "><br>
</span></div><div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px;
">#include<boost/python.hpp></span></div><div><span
class="Apple-style-span" style="border-collapse: collapse; font-family: arial,
sans-serif; font-size: 13px; "><br>
</span></div><div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; ">Also, </span>my
code compiles in Linux, with and without the Python.h header:</div><div>
<meta charset="utf-8"><div><br></div><div>$ uname -a</div><div>Linux <a
href="http://nxx.xx.com">nxx.xx.com</a> 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17
06:38:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux<br></div></div><div><br>
</div><div>with the same flags as before:</div><div><br></div><div><meta
charset="utf-8"><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; ">cd $(BOOST);
./bootstrap.sh --prefix=$(CURDIR)/$(BOOST)
--with-python-root=$(CURDIR)/$(PYTHON_DIR) --with-python-version=2.7
--with-libraries=mpi<br>
<br>cd $(PYTHON_SRCDIR) ; ./configure --enable-shared
--prefix=$(CURDIR)/$(PYTHON_DIR)<br>cd $(PYTHON_SRCDIR) ; make -j $(NUMPROC)
&& make install<br></span></div><div><span class="Apple-style-span"
style="border-collapse: collapse; font-family: arial, sans-serif; font-size:
13px; "><br>
</span></div><div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; ">Thanks
again,</span></div><div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial, sans-serif; font-size: 13px; ">Nasos</span></div>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com