Hi, Michael Haupt <[email protected]> writes:
> I'm having some trouble with the idiom for importing Pepsi objects in > Jolt code (I didn't quite remember how that worked, so I used the code > in the cairo demo): > > (define mylibhandle (dlopen "mylib")) > ((_dlsym mylibhandle "__id__init__")) > > It simply dies upon invoking __id__init__() (signal 10, bus error on > Mac OS X). Yeah, I found this a while ago, and the reason was because object/idc/CCodeGenerator.st expects __id__init__ to be passed a valid struct __libid * as its argument. You'll have to figure out how to get such a thing to __id__init__... in my patches a while ago, I decided to do it by exposing the "_libid" symbol via function/jolt2/Compiler.st where RTLD_DEFAULT and friendns are defined. I hope this helps... I don't have a working patch right now since mine all broke a while ago, too. -- Michael FIG <[email protected]> //\ http://michael.fig.org/ \// _______________________________________________ fonc mailing list [email protected] http://vpri.org/mailman/listinfo/fonc
