[C++-SIG] 5.0b : CXX.example throws exception.

Joe Van Andel vanandel at atd.ucar.edu
Mon Aug 28 19:14:02 CEST 2000

Using Python 1.52, gcc 2.95.2 on Redhat Linux 6.2

(As a minor correction, to run the example, I had to add
"libraries=['stdc++']" to Demo/setup.py, in the invocation of

Even though I had linked Python with c++, 'cerr' was undefined until I
linked the extension with std+++.)

When I try to run the example (import CXX.example), it throws an

#0  0x80c3f64 in __throw ()
#1  0x40422890 in Py::Object::validate (this=0xbfffdc50) at
#2  0x404031fc in Py::ExtensionModuleBase::module (this=0x811a548) at
#3  0x40403525 in Py::ExtensionModuleBase::moduleDictionary
(this=0x811a548) at /local/etc/CXX/cxx_extensions.cxx:108
#4  0x40424ef8 in Py::ExtensionModule<example_module>::initialize
(this=0x811a548, module_doc=0x4043f820 "documentation for the example
module") at /local/include/python1.5/CXX/Extensions.hxx:191
#5  0x403de46d in initexample () at example.cxx:266
#6  0x805f540 in _PyImport_LoadDynamicModule (name=0xbfffe754
"CXX.example", pathname=0xbfffe2c4
"/usr/local/lib/python1.5/site-packages/CXX/example.so", fp=0x8112828)
at ./importdl.c:851

Any idea how to fix this?

Joe VanAndel  	          
National Center for Atmospheric Research
Internet: vanandel at ucar.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vanandel.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: Card for Joe Van Andel
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20000828/811bda2a/attachment.vcf>

More information about the Cplusplus-sig mailing list