Create a file app.c:
int add(int a,int b)
{
return a+b;
}
int sub(int a,int b)
{
return a-b;
}
Build a shared library
Write 2 simple clients to use that library using implicit (linker flags) and explicit (dlopen) linkage
change the file extension to cpp and create the library, clients again
Task 2
Add a global variable to the library and add 2 functions to set and get its value
Write 2 applications that use the global variable , Is it private or public? what can we do?