Displaying 1 result from an estimated 1 matches for "ld_library_pasth".
Did you mean:
dl_library_path
2004 Nov 02
0
how to call function in ../src/main
...have test.pl which has
#!/usr/local/bin/perl
use strict;
use cor;
sub test {
my $result;
my @a = (1,2,3,4,5);
my @b = (1,2,3,4,5);
my $n = 5;
cor( $n, \@a, \@b, \$result );
my $temp = sprintf "%6.4f\n", $result;
printf "result: $temp \n";
}
test();
We setup LD_LIBRARY_PASTH and then we run test.pl, we got:
$ test.pl
Can't load './cor' for module cor: ld.so.1: /usr/local/bin/perl: fatal:
relocation error: file ./cor: symbol R_NaReal: referenced symbol not found
at /usr/local/lib/perl5/5.8.2/sun4-solaris-thread-multi/DynaLoader.pm line
229.
at cor.pm line...