Can anyone help with this? Executing the following program "lt" causes a bus error.
This is with gcc 3.1, Icon/Unicon 9.4.1, on Solaris 8 Sparc.
Thanks.
Kostas
_______________________________________
Icon
_______________________________________
procedure main()
local L
ctoil := loadfunc("./ctoil.so", "CtoIlist")
L := ctoil()
end
_______________________________________
C
_______________________________________
typedef long word;
typedef struct {word dword, vword;} descriptor;
int CtoIlist(int argc, descriptor argv[])
{
printf("Calling Zlist...\n");
Zlist(5);
printf("Back from Zlist!\n");
return 0;
}
int Zlist(int x)
{
printf("In Zlist!\n");
return;
}
_______________________________________
Makefile:
_______________________________________
%.o : %.c
gcc -c -fpic $<
ctoil.so : CtoIlist.o
gcc -shared -fpic -o $@ $^
lt : lt.icn ctoil.so
/opt/icon/bin/icont $@
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group