# The following was supposedly scribed by
# Alexandru Palade
# on Friday 25 March 2005 12:51 pm:

>I get errors because I didn't put the "package ChmFile;" statement on
> top ( I can't use VERSION and NAME without a package declaration).
> And if I put it, after installing the module and trying to use it, it
> seems the methods are not correctly linked with the ChmFile class. I
> thought when Inline::CPP detects a class declaration it automatically
> creates the namespace and the package declaration is no longer
> needed.

IIRC, Inline::CPP creates the package one level below the current 
package.  Not sure if this is a bug or by-design.

I think if you dig (in the build directory), you'll find that your 
package comes out as ChmFile::ChmFile.  I haven't been working with it 
for a while, but I think Inline::CPP may need some kind of option to 
control this behavior.

--Eric
-- 
"Matter will be damaged in direct proportion to its value." 
                                        -- Murphy's Constant
---------------------------------------------
    http://scratchcomputing.com
---------------------------------------------

Reply via email to