Skip to content

Instantly share code, notes, and snippets.

@jayemerson
Created July 10, 2011 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayemerson/1074811 to your computer and use it in GitHub Desktop.
Save jayemerson/1074811 to your computer and use it in GitHub Desktop.
Error when running: No NCI thunk available for signature '[ 4, 4, 4 ]'
sub test(*@args) {
my $ans;
ans := Q:PIR {
.local pmc libgsl, gsl_ran_gaussian_pdf
.local num ans, xval, sigma
xval = 0.0
sigma = 1.0
libgsl = loadlib "libgsl"
if libgsl goto HAVELIBRARY
say 'Could not load the library'
HAVELIBRARY:
gsl_ran_gaussian_pdf = dlfunc libgsl, "gsl_ran_gaussian_pdf", "ddd"
ans = gsl_ran_gaussian_pdf(xval, sigma)
%r = box ans
};
print($ans);
return $ans;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment