Peter Van Eynde <[EMAIL PROTECTED]> writes:

> IIRC the debian images are compile with export-dynamic. Can you dlopen
> the library?
> 
> Groetjes, Peter

I compiled the program dlo.c =

#include <stdio.h>
#include <dlfcn.h>

int main(int argc, char **argv) {
    void *handle;
    char *error;
    handle = dlopen ("/usr/local/src/matlisp/lib/libmatlisp.so", RTLD_LAZY);
    if (!handle) {
        fputs (dlerror(), stderr);
        fprintf (stderr, "\n");
        exit(1);
    }
    dlclose(handle);
}

with 'gcc -rdynamic -o dlo dlo.c -ldl' (thanks, Peter).  When I run it
I'm getting the error
/usr/local/src/matlisp/lib/libmatlisp.so: undefined symbol: fstat

I wonder which libraries I have to link for "fstat".

Greetings, Nicolas.

Reply via email to