[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jan 26 10:35:22 2001 
Subject:new problems 
From:Monika Sester 
Volume-ID:1010126.02 

dear pop-ers,

i have two problems: the first deals with including an external library, the
second with producing a saved image.

1) using an external libary:

i am using the blas-library for matrix calculations. let me show you, what i
did:

i comiled the c-routines calling the matrix multiplication using the
command:

foreach f (*.c)
    set Comm = ( gcc -o ${f:r}.so -fpic -shared $f -lblas )
    echo $Comm
    $Comm
end

then i defined the external functions (here shown for matmul-program):

external declare blas_routines in c;
      int matmul(a,b,c,l,m,n)
      double a[], b[], c[];
      int l,m,n;
      {}
endexternal;

external load blas_routines;
      matmul
endexternal;

when i call the function "matmul" from pop11, the system exits with the
following error message:

pop11: error in loading shared libaries: ./matmul.so: undefined symbol:
dgemm


comment:
i used this procedure some time ago on an irix machine. now i try to run it
again with linux.
the problem is, that i do not exactly recall, which steps i took at that
time.
since i am not too much concerned with c-programming, it could be, that i
made
some essential mistakes while comiling and loading. one thing that gives an
indication for that is that on the irix-system i had a file called
so_locations, which perhaps shows pop, where to find the programs (???).
this file
has not been generated with the procedure described above.


2. producing a saved image:

i want to store a set of my basic functions as a saved image. for this
purpose,
i used the following script:

$popsys/pop11 %noinit << \\\\
/*
;;; $popsys/pop11 %noinit << \\\\
   this command file makes a saved image from the basic pop-11 routines
   loaded below

   Last update:
      7-aug-1991 moni
*/

load loadinit.p;

sysgarbage();
syssave('sicher.psv') =>
sysexit();

\\

where my functions are given in the file loadinit.p

when i execute this script, i get the following message:

....
LOADING ... programx.p
LOADING ... programy.p

WARNING - RUN-TIME ACTIONS DONE, SAVED IMAGE MAY BE COMPROMISED
INVOLVING: 'save.psv'
** <false>

the problem is: if i try to use this image with the command

pop11 +save %x

the system does not start with the x-functionality.


is there any help out there for this ?

thank you very much in advance !
-moni

--
monika sester
institut für kartographie
uni hannover