On Thu, Mar 13, 2014 at 11:14 AM, Raul Miller <[email protected]> wrote: > 2!:13 was a concept I invented a few minutes ago. > > And, yes, I could probably do this in a library. so I started on that. I > went into a linux instance and in j602/bin I created a file named errno.c > which contains the text: > > #include <errno.h> > > int get_errno() { > return errno; > } > > Then: > > ~/j602/bin$ CFLAGS=-fPIC make errno.o > cc -fPIC -c -o errno.o errno.c > ~/j602/bin$ gcc -shared -Wl,-soname,liberrno.so.1 -o liberrno.so.1.0.0 > errno.o > ~/j602/bin$ ./jconsole > require 'dll' > 'liberrno.so.1.0.0 get_errno n' cd '' > |domain error: cd > | 'liberrno.so.1.0.0 get_errno n' cd'' > cder'' > 1 0 > > (file not found) >
For what it's worth, it worked for me with an absolute path. No changes to the c gcc -shared -fPIC errno.c -o errno.so '/home/joebo/j64-701/errno.so get_errno n' cd '' âââ â0â âââ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
