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...

Security reviews are primarily an ____ function.

A. audit B. oversight C. implementation D. intrinsic

Computer Science & Information Technology

Access uses the ________ which combines data that exists in two or more fields, similar to the CONCATENATE function in Excel

Fill in the blank(s) with correct word

Computer Science & Information Technology

If users access the Facebook Mobile site, they can get a private e-mail address

Indicate whether the statement is true or false

Computer Science & Information Technology

"Qtr 1, Qtr 2, Qtr 3" is an example of Select one:

a. Function b. Series c. Syntax d. Formula

Computer Science & Information Technology