Dirgesh Patel wrote: > i get the same error..i was told you have to cast the function name to a ptr > and can't use (&) right, delete one extra pointer then: def("copy", static_cast<bkimage (*)(bkimage,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t)> (imageMorph_copy), return_value_policy<manage_new_object>() );