newlisp.so import
Posted: Sat May 28, 2005 8:37 am
I thought it was me but the newlisp.so cant be imported.. I tried it with
using Rebol and that did not work then i tried with C and that also did
not work.. any idea?
1@zeep:~/prog/nl/progs$ gcc -ldl ./libdemo.c -o libdemo
1@zeep:~/prog/nl/progs$ libdemo
cannot import library
1@zeep:~/prog/nl/progs$ ls /usr/lib/newlisp.so
/usr/lib/newlisp.so*
1@zeep:~/prog/nl/progs$ ls -al /usr/lib/newlisp.so
-rwxr-xr-x 1 root root 228760 2005-05-28 10:26 /usr/lib/newlisp.so*
here the code..
#include <stdio.h>
#include <dlfcn.h>
int main()
{
void * hLibrary;
if((hLibrary = dlopen("/usr/lib/newlisp.so", RTLD_GLOBAL | RTLD_LAZY)) == 0)
{
printf("cannot import library\n");
exit(-1);
}
}
using Rebol and that did not work then i tried with C and that also did
not work.. any idea?
1@zeep:~/prog/nl/progs$ gcc -ldl ./libdemo.c -o libdemo
1@zeep:~/prog/nl/progs$ libdemo
cannot import library
1@zeep:~/prog/nl/progs$ ls /usr/lib/newlisp.so
/usr/lib/newlisp.so*
1@zeep:~/prog/nl/progs$ ls -al /usr/lib/newlisp.so
-rwxr-xr-x 1 root root 228760 2005-05-28 10:26 /usr/lib/newlisp.so*
here the code..
#include <stdio.h>
#include <dlfcn.h>
int main()
{
void * hLibrary;
if((hLibrary = dlopen("/usr/lib/newlisp.so", RTLD_GLOBAL | RTLD_LAZY)) == 0)
{
printf("cannot import library\n");
exit(-1);
}
}