From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,319de8257389ed52,start X-Google-Attributes: gidfee84,public From: zhao@bloch.phys.uwm.edu (T.C. Zhao) Subject: How to make shared libraries ? Date: 1995/07/20 Message-ID: <3ukf4i$903@uwm.edu>#1/1 X-Deja-AN: 106587449 organization: Surface Labs, Dept. of Physics -- UW-Milwaukee newsgroups: comp.unix.osf.osf1 Wondering how to make a shared library. cc does not seem to have the usual -PIC or some other telling flags. The ld man page mentioned using -shared would make a shared object (ld -shared -o libx.so *.o) , tried that, but when attempting to compile and link a program using the shared object, everything seems ok, but when run, loader complains unable to mape the shared library. Confused. Any help would be appreciated. -- | I am Pentium of Borg. T.C. -- Starving Physicist | Division is futile. | You will be Approximated.