Create a shared library with a simple function that returns an integer value. Then write a program to call this function and print its return value. After compiling and running the program, make a change to the library function that will change the return value of the function. Now rebuild the library, and relink your already compiled .o file(s) with it and run the program again. Which return value do you see this time? What happens if you rename the function in the shared library and try to relink your program?

What will be an ideal response?

This is just a demonstration; the lesson is in the activity.

Computer Science & Information Technology

You might also like to view...

Null is the absence of any value and is different from blank or zero

Indicate whether the statement is true or false

Computer Science & Information Technology

Insert a ________ placeholder to on a custom slide layout tif the layout is to include a numbered list

Fill in the blank(s) with correct word

Computer Science & Information Technology