Hi Philip/misc, On Wed, Aug 11, 2010 at 12:01 AM, Philip Guenther <[email protected]> wrote: > On Tue, Aug 10, 2010 at 8:41 AM, Edwin Eyan Moragas <[email protected]> wrote: > actually find the shared object. If the path you give dlopen() > doesn't contain a slash, then it will _not_ normally search the > current directory. Perhaps you should pass dlopen() an absolute path?
summing up what i have done so far after doing actual work. i'm trying to compile picoLisp on obsd 4.7. as suggest i passed an absolute path to dlopen(). dlerror() says "File not found". particulars: compiling looks like: gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer -fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat -Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_OS='"OpenBSD"' main.c and the dynamic library is compiled as: gcc -o ../lib/ht -m32 -shared -export-dynamic ht.o "ht" is the dynamically loaded library. what am i missing here? this is the first time i'm dealing with dlopen() and company so please be gentle. thank you to all who responded so far. /e

