Created
July 10, 2011 18:34
-
-
Save jayemerson/1074811 to your computer and use it in GitHub Desktop.
Error when running: No NCI thunk available for signature '[ 4, 4, 4 ]'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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