Couple notes: - boost.python issues better discuss in comp.lang.python.c++ group; - debug your extension from python first, then embed it - don't call PyFinalize() zghelp wrote: > but the exception occur when run to "print t.greet()" > > How can I solve it? Providing exception text will be helpful. Mike