in reply to Inline::C with multiple *.c
Is there a better way?
Yes, chdir
#!/usr/bin/perl -- use Path::Class; use constant THISFILE => "".file( __FILE__ )->absolute; use constant THISDIR => "".file( THISFILE )->dir; BEGIN { chdir THISDIR or die $!; } use Inline ( C => Config => LIBS => "-Llib/relative -lrelative", INC => "-Iinc/relative", BUILD_NOISY => 1, CLEAN_AFTER_BUILD => 0, DIRECTORY => 'RELATIVE', # INVALID VALUE?! IT MUST EXIST ); use Inline C => file('a.c')->absolute, qw' NAME RelativeA '; use Inline C => file('b.c')->absolute, qw' NAME RelativeB '; use strict; use warnings; ...
See also swd, Toolkit, Syntax::Collector...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Inline::C with multiple *.c
by gri6507 (Deacon) on Aug 24, 2012 at 12:35 UTC | |
by Anonymous Monk on Aug 24, 2012 at 13:16 UTC |
In Section
Seekers of Perl Wisdom