Unix/Linux programming Question: Download Questions PDF
How would you create shared and dynamic libraries?
![Unix/Linux programming Interview Answer Unix/Linux programming Interview Question](https://globalguideline.com/public/images/interview/5.png)
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
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 Question | Next Question |
How do you debug a core dump? | What are the differences between Shared and Dynamic libraries? |