Skip to content

Instantly share code, notes, and snippets.

@BradNeuberg
Created October 15, 2015 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BradNeuberg/5ce3da0e1fef7e18db0d to your computer and use it in GitHub Desktop.
Save BradNeuberg/5ce3da0e1fef7e18db0d to your computer and use it in GitHub Desktop.
#include <iostream>
#include <boost/python.hpp>
using namespace std;
int helloworld()
{
return 10;
}
BOOST_PYTHON_MODULE(test_boost)
{
boost::python::def("helloworld", helloworld);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment