On Mon, Feb 4, 2013 at 10:00 PM, horseriver <horserivers@gmail.com> wrote: > > To make a DSO , I should use -r or -share -s? Neither. Assuming you are talking about the linker, you use -shared. But you should normally create a DSO by running GCC, not the linker. The GCC option is also -shared. Ian