Hello ,
We tried compiling a DLL with the following sources but have not been successful.
program mycall; function add(x:integer;y:integer):integer; far; external 'mylib'; var b:integer; begin b:=add(5,6); end.
-------------------------------------------- library mylib; uses winprocs; function add(x:integer;y:integer):integer;export; begin add:=x+y; end; exports add index 1; begin end. -------------------------------------------------
What changes do we have to make to the sources to build the DLL?
Regards, Anuradha
Frank Heckenbach wrote:
HARIKRISHNA Kocheralkota wrote:
Is there any GPC compiler option available for creating .so
The same as with GCC, e.g.:
gpc -shared -Wl,-soname=whatever -o foo.so.42 files
You might also want to try libtool (but I have no experience with it myself).
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
-- S.Anuradha Generic Data Tools, Alcatel Chennai. Alcanet : 2-757-7123