pusateri@macbeth.cs.duke.edu (Thomas J. Pusateri) (03/16/90)
I was recently creating a library of the Numerical Recipes in C on my AT&T 3b1. I may be asking too much but ar didn't seem to want to handle this large of a library. I even striped the internal symbols out to make the objects smaller with the following sequence when compiling each C file: -------------------------------------------- libnrc.a: $(OBJS) ar rv $@ $(OBJS) .c.o: $(CC) -O $(CFLAGS) -c $< @ld -r -x $*.o @mv a.out $*.o -------------------------------------------- I would like to make this a shared library file if possible. Does anyone know how to create your own shared libraries on the unix-pc? If I could link it with the existing shared libaries as well, this might also reduce the size. Is there a limit on the number of objects that ar can handle? Thanks for any info Tom Pusateri pusateri@nbsr.duke.edu Below is the disected output from typing make: cc -O -I.. -c adi.c [other compilations deleted] cc -O -I.. -c zroots.c ar rv libnrc.a adi.o amoeba.o anneal.o avevar.o badluk.o balanc.o [many objects deleted] trapzd.o tred2.o tridag.o ttest.o tutest.o twofft.o vander.o zbrac.o zbrak.o zbrent.o zroots.o a - adi.o a - amoeba.o a - anneal.o a - avevar.o a - badluk.o a - balanc.o ... a - trapzd.o a - tred2.o a - tridag.o a - ttest.o a - tutest.o a - twofft.o a - vander.o a - zbrac.o a - zbrak.o a - zbrent.o a - zroots.o ar: creating libnrc.a Bus error - core dumped ----------------------------------------------------------------------- Tom Pusateri pusateri@nbsr.duke.edu