Unix/Linux programming Question:

How would you create shared and dynamic libraries?

Tweet Share WhatsApp

Answer:

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 PDF Read All 15 Unix/Linux programming Questions
Previous QuestionNext Question
How do you debug a core dump?What are the differences between Shared and Dynamic libraries?