[C++-sig] Trouble with Py++/boost.python
seefeld at sympatico.ca
Mon Jan 29 19:55:04 CET 2007
the 'semantic error message' is cleverly encoded into the error message
you get from the compiler. For example:
Robert O'Callahan wrote:
(just read that out aloud.)
What that means is at some point you try to wrap a function returning a pointer
('FILE *', it seems), and boost.python does not know how to handle that, i.e. whether you
want the underlying FILE object to be owned by the newly created wrapper, or not.
Thus, you have to provide a 'return_value_policy', as documented here:
...ich hab' noch einen Koffer in Berlin...
More information about the Cplusplus-sig