Hello,
I'm relatively new to poplog but am working along side Darryl Davis at the
University of Hull who is well versed in it. Unfortunately though the same
does not apply to using poplog with Linux.
The problem we're having at the moment is simply trying to get poplog and c
talking to each other on Linux Mandrake 9.0. I've read the appropriate
documentation and came up with the following simple c and poplog code (which
works fine under Unix I'm told):
/*C Code - test.c*/
#include <stdio.h>
int multiply(int x, int y)
{
return (x*y);
}
/*Poplog Code - test.p*/
;
external declare testprog in c;
int multiply(x, y)
int x, y;
{}
endexternal;
external load testprog;
test
endexternal;
vars a = 5, b = 2;
/**/
With the above code, I'm getting the following error:
: load trans.p
;;; LOADING test.p
;;; Warning: can't open shared object ./test.so (Inappropriate ioctl for
;;; device)
;;; Error: can't find value for symbol multiply
;;; MISHAP - ERRORS ACCESSING EXTERNAL SYMBOLS (see above)
;;; FILE : /home/adam/poplog/test.p LINE NUMBER: 10
;;; DOING : external_do_load exload_do_batch_load do_load external
;;; loadcompiler pop_setpop_compiler
Setpop
:
Could any one shed any light on the problem. The poplog code will be
looking for a .so file. Are there any particular parameters that must be
passed to gcc or cc to ensure compatibilty.
Any help will be gratefully received.
Adam Bell.
|