This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: building Python extension modules - crash on import


> 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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]