Re: [C++-sig] errors compiling Boost Python example

2012-07-05 Thread Joel Uckelman
Thus spake Ralf Grosse-Kunstleve: > > It looks like you inserted an extra const (I don't see it in the current > tutorial) ... > > char const * const greet() { > > It should work if you remove it. Ha! You're correct. The example program was so short that I just retyped it, and I made the pointe

Re: [C++-sig] errors compiling Boost Python example

2012-07-05 Thread Joel Uckelman
Thus spake Sybren A. Stüvel: > > Hi Joel, > > On 5 July 2012 12:21, Joel Uckelman wrote: > > > I'm trying to compile the example from the Boost Python docs without > > success. [...] > > > > There are many ways in which you can fix this. I think th

[C++-sig] errors compiling Boost Python example

2012-07-05 Thread Joel Uckelman
I'm trying to compile the example from the Boost Python docs without success. hello.cpp: #include char const * const greet() { return "hello, world"; } BOOST_PYTHON_MODULE(hello_ext) { using namespace boost::python; def("greet", greet); } I have Boost 1.48, Python 2.7, a