Creating a lib...

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
Creating a lib...

 

Creating a lib...
Submitted by Anonymous on Mon, 12/30/2002 - 15:52.

I have a bunch of Objects that I want to place in a lib and include into projects during compilation and via a header include. I have done a man on ar and ranlib; however, I am still at a loss. Any help would be greatly appreciated.

In conclusion...
How do I archive a group of objects into one lib?

Thanks.
C. Lamb

 

Tue, 12/31/2002 - 16:41#1

Tue, 12/31/2002 - 16:41#1

Anonymous

Creating a lib...

Use ar.

ar -r libname objectfile.o

to list contents of lib
ar -t libname

Sat, 01/04/2003 - 19:56#2

Sat, 01/04/2003 - 19:56#2

Anonymous

Creating a lib...

Read the following page
http//www.tldp.org/HOWTO/Program-Library-HOWTO/

Dusan Peterc