This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: building Python extension modules - crash on import
- To: "Jason Tishler" <jason at tishler dot net>, <cygwin at sources dot redhat dot com>
- Subject: RE: building Python extension modules - crash on import
- From: "Peter Bienstman" <Peter dot Bienstman at rug dot ac dot be>
- Date: Mon, 6 Aug 2001 11:36:08 +0200
- Reply-To: <Peter dot Bienstman at rug dot ac dot be>
> If you can refer me to a self contained (i.e. not dependent on other
> libraries, etc.) Python C++ extension, then I'm willing to fiddle around
> with it.
Attached are a simple C++ file convert.cpp and a makefile. The Python
extension does however require the Boost Python Library (www.boost.org), a
C++ system to create Python extension modules.
The linking fails with errors like:
convert.o(.complex<double>
boost::python::detail::text$complex_from_python<double>(_object *,
boost::python::type<double>)+0x10):convert.cpp: undefined reference to
`PyInt_Type'
../
/users/pbienst/tmp/boost_cvs/libs/python/src/libboost_python.a(extension_cla
ss.o)(.text+0x3ad):extension_class.cpp: undefined reference to
`PyExc_RuntimeError'
...
These are symbols which I suppose must be in libpython2.1.
Thanks,
Peter
-------------------------------------
Peter Bienstman
Department of Information Technology
INTEC/IMEC - Ghent University
St.-Pietersnieuwstraat 41
B-9000 Gent - Belgium
E-mail: Peter.Bienstman@rug.ac.be
Tel: +32 9 264 3445
Fax: +32 9 264 3593
-------------------------------------
convert.cpp
makefile
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/