"g" <[EMAIL PROTECTED]> writes: > I have three static libs, A.a, B.a, C.a and I want to create a shared > lib D.so.
Please read this: http://www.catb.org/~esr/faqs/smart-questions.html > which are the appropriate flags to do this? Depends on the OS and which linker you are using. On Linux, do this: g++ -shared -o D.so -Wl,--whole-archive A.a B.a C.a -Wl,--no-whole-archive Note that on many processors, code in A.a, B.a etc. must be compiled with -fPIC, or you'll not be able to link it into a shared library. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus