Re: Loading/registering multiple xsubs
[email protected] (Jeffrey Ratcliffe)
| Newsgroups | perl.xs |
|---|---|
| Message-ID | <CACg2wbwuMXf4TNbSynmViVLntS85H4LHEwEO1GJyaB+QOEPJxA@mail.gmail.com> |
On 12 October 2011 13:11, Torsten Schoenfeld <[email protected]> wrote: > You have to call Foo_Bar.xs' BOOT section (which wires up the xsubs) from > Foo.xs' BOOT section. Look at Glib.xs' BOOT section for an example. For > Gtk2 and below, this is handled by Gtk2::CodeGen->write_boot. Thank you for your quick response. I'm still struggling, so I made a small example (attached), which fails to compile, trying to base the boot mechanism on that in Glib: foo.xs: In function 'void boot_Foo(PerlInterpreter*, CV*)': foo.xs:18: error: expected unqualified-id before string constant foo.xs:18: error: 'boot_Foo__Bar' was not declared in this scope Any ideas? Thanks Jeff
Foo-0.01.tar.gz
(application/x-gzip, 10.6 KB) - not displayed