Hello,
I am having a bit of trouble with C++ and enums. Here is the code that I
have:
my $foo = Test->new();
$foo->func( $Foo::b );
use Inline 'C++' => <<EOF;
class Test {
public:
typedef enum { a = 0, b, c } foo;
Test();
void func( foo x );
};
Test::Test() {};
void Test::func( Test::foo x ) {
cout << x << endl;
}
EOF
When this executes I get back:
Can't locate object method "func" via package "main::Test" (perhaps you forgot
to load "main::Test"?) at ./test.pl line 2.
Any suggestions?
Also I noticed that with Inline 0.44 using "use Inline 'C++' => Config =>
PRINT_INFO => 1;" does not print the binding info anymore, it just prints the
directory and .so name. Has anyone else seen this?
Thanks!
-Cory