Linker and Libraries Guide

Building a Dynamic Executable

The following example combines the above points:


$ cc -o prog -R /home/lib -z ignore -L. -lfoo file1.o file2.o file3.o .....