hi,
suppose I've got many static libs which contain object files compiled with
-fPIC, 
and than make an archive ar rc *.o. I've got n such libs eg, liba1.a, liba2.a,
liba3.a...
I've got a view more object file obj1.o, obj2.o ..(compiled with -fPIC) than I'd 
like to make a shared lib from these object files and the static libraries (this
object files
use other functions, classes from the other liba1.a...libraries) so when I'd
like to put this 
together:
gcc obj1.o obj2.o -Lmy_libs_directory -la1 -la2 -la3 -shared
-Wl,-soname,libresult.so.1 -o libresult.so.1 
but it's not working, it leaves out some functions which is eg. in liba1 (this
can be checked
by nm -C liba1.a) why ? and how can I force to put them in.
another question how can create a shared lib with just a few viewable function.
in the current
case, it puts all function from all object file int to lib (both shared and
static). suppose
I would like to "announce" just a few (the interface function) and no more (my
inner/private
functions).
thank you for your help in advance.
yours.

-- gabor

 If  2 * 2 = 3.978  it's a bug.
 If  2 * 2 = 5  it's a feature.
 If  2 * 2 = 4  it's a user's manual.



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to