Hi, I want to create a shared library, say libULIB.so, which needs additional shared libraries, e.g. libmpfr.so and libgmp.so .
My users only use the functions provided by libULIB.so. Is there a means to "prelink" libULIB.so, so that the libraries libmpfr.so and libgmp.so are not needed by the user? I.e. instead of g++ Example.C -lUlib -lmpfr -lgmp it should be suffucient to say g++ Example.C -lUlib Given Ulib.o I've tried g++ -shared -o libUlib.so -fpic -Wl,-soname,libUlib.so \ -Wl,-rpath,$LIBPATH -Wl,-export-dynamic \ Ulib.o -L $LIBPATH -lmpfr -lgmp but I still need -lmpfr -lgmp to get an executable. Many thanks for a hint, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany