You really confuse me! I thought you were using Boost.Python now?! Try this: char const* greet() { return "hello, world"; } void PyInit_pawnbridge() { using namespace boost::python; def("greet", greet); } bool PawnBridge::SDK_OnLoad(char *error, size_t...