T
Thomas
The following code works for me at the beginning of my own module which
uses Inline C 0.44:
use Inline (C => 'DATA',
LIBS => 'foo.lib',
BUILD_NOISY => 1,
FORCE_BUILD => 1,
);
However, this variant:
my $lib_path = 'foo.lib';
use Inline (C => 'DATA',
LIBS => $lib_path,
BUILD_NOISY => 1,
FORCE_BUILD => 1,
);
does not. It runs, but the string 'foo.lib' is not given as a library to
Inline's make process so that I end up with an error "unresolved
externals" when linking the DLL Inline creates as glue code. So a
literal string is fine in that particular context, a variable is not.
This is probably a basic language understanding problem of mine and has
less to do with the Inline module, but I can't figure this one out alone.
uses Inline C 0.44:
use Inline (C => 'DATA',
LIBS => 'foo.lib',
BUILD_NOISY => 1,
FORCE_BUILD => 1,
);
However, this variant:
my $lib_path = 'foo.lib';
use Inline (C => 'DATA',
LIBS => $lib_path,
BUILD_NOISY => 1,
FORCE_BUILD => 1,
);
does not. It runs, but the string 'foo.lib' is not given as a library to
Inline's make process so that I end up with an error "unresolved
externals" when linking the DLL Inline creates as glue code. So a
literal string is fine in that particular context, a variable is not.
This is probably a basic language understanding problem of mine and has
less to do with the Inline module, but I can't figure this one out alone.