Programming and posix getting started

14
Linking with Libraries - Syntax
-lfoo means link with library libfoo.a
-lc is included in link by default
-Lpath tells where library is located
-L/lib -L/usr/lib is included in link by default
Link with libsvipc archive library
> c89 -o hwcgi hwcgi.c -lsvipc
Link with libsvipc shared library
> c89 -o hwcgi hwcgi.c -WL,XL=/lib/libsvipc.sl
-WL switch specifies shared library
must specify full pathname