Unix/Linux programming Question:
Download Questions PDF

How would you create shared and dynamic libraries?


Well shared libraries have 2 types

1) Static

2) Dynamic.

u can create library by

ar cr -o sharedobj.a file1.o file2.o

while file1 and file2 are headfiles (obj)

now put this sharedobj.a into /usr/lib directory

Download Unix/Linux programming Interview Questions And Answers PDF

Previous QuestionNext Question
How do you debug a core dump?What are the differences between Shared and Dynamic libraries?