gcc questions

Matthew Miller mattdm at mattdm.org
Sat Nov 26 23:14:46 UTC 2005


On Sun, Nov 27, 2005 at 12:57:29AM +0200, Dotan Cohen wrote:
> > gcc -lm 1_3.c
> Thank you, it compiled now. I just spacebar'ed about 100 times in the
> gcc man page looking for the "m" option that you mention. I did find
> the "l" option (search the library named library when linking), but
> not the "m" option.

Right -- "m" isn't an option, but actually the name of the library. Well,
actually, the library is "libm.so", but the -l assumes a prefix of lib and a
suffix of .so.


-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the fedora-list mailing list