[EMAIL PROTECTED] writes:

> i want to make .so from multiple .a's

On which platform?

On Linux you can do this:

  # combine libbar.a and libbaz.a into libfoo.so
  g++ -fPIC -shared -o libfoo.so -Wl,--whole-archive -lbar -lbaz 
-Wl,--no-whole-archive

On non-GNU-ld platforms you have to "explode" the archives:

  mkdir tmp.$$ && cd tmp.$$ &&
  ar x ../libbar.a && ar x ../libbaz.a &&
  g++ -fPIC -shared -o ../libfoo.so *.o && 
  cd .. && rm -rf tmp.$$

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

Reply via email to