in reply to Re: Using Inline::C in a package
in thread Using Inline::C in a package
I would say there is a :: missing on line 7.
No. The OP is exactly correct. That is how Inline C is used. Though it is normal followd by some other arguments; Eg. This is my standard usage:
#! perl -slw use strict; use Inline C => Config => BUILD_NOISY => 1; use Inline C => <<'END_C', NAME => 'rdtsc', CLEAN_AFTER_BUILD => 0; SV *rdtsc() { return newSVuv( (UV)__rdtsc() ); } ... END_C use Data::Dump qw[ pp ]; use GD; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using Inline::C in a package
by choroba (Cardinal) on Sep 04, 2013 at 17:02 UTC | |
by BrowserUk (Patriarch) on Sep 04, 2013 at 17:04 UTC | |
|
Re^3: Using Inline::C in a package
by rem45acp (Novice) on Sep 04, 2013 at 17:10 UTC |