I
ilp
Has anyone gotten inline C to work with Parallel:vm. It seems to
choke on the "use Inline C;" statement. Thank.
choke on the "use Inline C;" statement. Thank.
ilp said:Has anyone gotten inline C to work with Parallel:vm. It seems to
choke on the "use Inline C;" statement. Thank.
Not sure that anyone has tried
In general, there's no problem combining perl extensions with Inline::C. A
simple demo script might help. (Make it as minimal as possible - and also
provide a copy'n'paste of the error messages produced.)
Cheers,
Rob
Welp, I'd have to butcher a rather long module, but here's the jist of
it:
Assume that pvm is running and has a few hosts added.
mod1.pl:
use Parallel:vm;
my ($ntask,$tids) = Parallel:vm::spawn( "/foo/bar.pl", 1);
1;
------
bar.pl:
use Inline CPP => DATA =>
LIBS => '-lalib;
print "Hello Parallel World!";
1;
----
output:
Terminated
Sorry, 'bar.pl' would actually be:
bar.pl:
use Inline C => DATA =>
LIBS => '-lalib;
print "Hello Parallel World!";
1;
__DATA__
__C__
__END__
__C__
jon said:Tried those things. No dice. The C compilation phase completes
without error. This is really annoying. I guess I've sorta reached
that grey area where Perl is no longer the best language choice. --jn
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.