On Mon, 09 Feb 2009, Thomas Rowe wrote: > > I'm trying to embed perl in a C++ application and have some perl modules > call back into the C++. I cannot figure out how to make the bootstrap > work on my callback module. When I eval "use Callback;" I get "Can't > locate loadable object for module Callback in @INC" even though the > Callback stuff is linked in. It shouldn't be looking for a .so file. > The DynaLoader stuff works fine for other modules.
There is no need to use DynaLoader in your Callback.pm module because you have already linked in the Callback.xs code statically. It is initialized by the xs_init() function that is being called by perl_parse(). Therefore you don't need the DynaLoader::bootstrap() call in your module. Cheers, -Jan