Chapter 5 165
Creating and Using Libraries
Caution When Mixing Shared and Archive Libraries
Figure 5-8
Now link the main with the libraries and create the executable a.out:
$ cc main.o lib12.a lib3.sl Link the program
.
Figure 5-9
When you run a.out, it runs correctly. Now suppose you need to modify
f3() to call f2():