- In this project we provide almost every functionality required to handle all necessary data structure in library format.
- In case of static library there is a memory issue and to avoid it we developed the library as Shared Object.
- We can use this library in any C/C++ application on Linux Platform.
How to run Program
I First Technique
- Create object file ( .o )
g++ -g -c -fPIC -Wall Collection.cpp
- Create Shared Object file ( .so )
g++ -g -shared -o Collection.so Collection.o
- Compiling client Program
g++ -g -Wall -o User User.cpp Collection.so -ldl
- Specifing path of Shared Object File
- if we give SharedObject complete path in dlopen then we can direct run
./User
- if we have given only name of Shared object file then we must specify the path
LD_LIBRARY_PATH=. ./User
- if we give SharedObject complete path in dlopen then we can direct run