in reply to creating module for Inline C
I've done it like this for example:
package ABC::DEF::G; ... # Preloaded methods go here. use Inline CPP => Config => INC => '-I/usr/X11R6/include/', LIBS => '-L/usr/X11R6/lib -lX11', CLEAN_AFTER_BUILD => 0; use Inline CPP => <<'END';
Update: Recompilation will happen for the Inline::CPP example I show here, but it is possible to make the extension behave more like a true module by proper use of VERSION, NAME, and Inline::MakeMaker, as documented in Writing Modules with Inline.
As for exporting a symbol from the extension as you try to do, I doubt that will work. Why not wrap the call in a perl routine and just export that?
Thanks to Fletch and dbp for corrections.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: creating module for Inline C
by Fletch (Bishop) on Jan 29, 2003 at 18:33 UTC | |
|
Re: Re: creating module for Inline C
by dbp (Pilgrim) on Jan 29, 2003 at 21:04 UTC |