[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 2.95 and Standard C



>Okay, I'm calmer now. Really. Promise. Ignore the knife I'm holding at
>my  wrists -- it's a twelve-inch Gil Hibbert butterknife, I swear.
>>it's the system library that contain the math functions.
>>Separate from libc.
>But how am I meant to find out which lib to link to for every piddlin' 
>function my widdle heart desires?

A good reference book.  And it becomes intuative after several wrist slashings.
 
>(It helps to know where to find them, too -- not in /lib, as libc.so.6
>et  al., but in /usr/lib, as libm.a. I can guess what the 'a' stands for,
>but  what is the difference between /lib and /usr/lib (or is there, aside
>from  the difference between / and /usr anyway?))

This is a UNIX robust-ness thing.  /lib is in the "/" filesystem, while
"/usr/lib" is in the "/usr" filesystem.  The drives containing /usr, /var,
etc... can all up and die, but as long as you can start single user and only
mount "/" you can restore the system because the absolutely necessary utilities
(and their corresponding libraries, hence libc the mother of all libraries) are
available.  It shouldn't matter to the developer where the library lives anyway,
so long as the directory is listed in /etc/ld.so.conf.

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505