[C++-sig] splitting a module definition over several cpp files
Matthew Scouten
matthew.scouten at gmail.com
Mon Sep 24 20:56:36 CEST 2007
The library I am trying to wrap is of unwieldy size.
I would like to split my boost python "declarations" in to several
different cpp files.
//file 1
BOOST_PYTHON_MODULE(poc)
{
//first code
}
//file 2
BOOST_PYTHON_MODULE(poc)
{
//second code
}
This does not work.
I know I saw a way to do this somewhere, but I cannot find it now.
Somthing invloling a function called from the end of '//first code'
that contained '//second code'.
I think the 'scope()' function may have been involved.
Can someone lend me a clue (or at least a link to one)?
More information about the Cplusplus-sig
mailing list