take off the -r option - it makes the library non-executable. you may have to include other (shared) libraries like libc.a in the build of your shared library. Marc Auslander