Sunday, 08 January 2006 13:41 samaye, Steve Graegert alekhiit:
libm is the name of the math library located in /usr/lib. The -l switch tells gcc to link against the specified library. Normally, the lib* prefix is omitted here just as seen with linking against 'libpthread' by specifying 'lpthread'.
So do I need to specify -lt if I want to link against time.h? There are fifteen ANSI libraries - assert, ctype, errno, float, limits, locale, math, setjmp, signal, stdarg, stddef, stdio, stdlib, string, time. Do I do a -l for each of these?
Effectively all UNIX systems come with manpages for system calls and library functions (commonly sections 2 and 3).
System calls such as? chmod? -- Penguin #395953 resides at http://samvit.org subsisting on SUSE Linux 10.0 with KDE 3.5