How to expose a c++ function taking variable arguments in boost python
I have a c++ function taking variable number of arguments. char const* Fun(int num, ...) { ....//does some processing on the arguments passed } Boost Python code for exposing this function is written as, using namespace boost::python; BOOST_PYTHON_MODULE( lib_boost ) { def( "Fun", Fun ); } while compiling this code gives the below error In file included from /boost_1_42_0/boost/python/data_members.hpp:15, from /boost_1_42_0/boost/python/class.hpp:17, from /boost_1_42_0/boost/python.hpp:18, from Lib_boost.h:3, from Lib_boost.cpp:1: /boost_1_42_0/boost/python/make_function.hpp: In function