Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: log10(8) Message-ID: <16087@haddock.ima.isc.com> Date: 5 Mar 90 03:24:18 GMT References: <3244@servax0.essex.ac.uk> <16022@haddock.ima.isc.com> <16048@haddock.ima.isc.com> <762@hnm.Morgan.COM> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 17 In article <762@hnm.Morgan.COM> amull@Morgan.COM (Andrew P. Mullhaupt) writes: >In article <16048@haddock.ima.isc.com>, karl@haddock.ima.isc.com (Karl Heuer) writes: >>But in that case he'd still get a warning `log10 used but not defined' > >No. This did not happen when I used lint on Sun OS 4.??. You're right. I'd forgotten how hard it is to get useful information out of BSD lint; I try to do most of my linting on my SysV machine. Okay, having trapped myself in the corner, I will now proceed to walk across the wet paint. I retract most of this thread. My original comments stand, suitably modified: (a) lint can help diagnose the problem (provided you tell it about the library; this is `-lm' in most versions of Unix) (b) if you don't have lint or equivalent functionality via compiler options, then your vendor only sold you half a C compiler. Karl W. Z. Heuer (karl@ima.ima.isc.com or harvard!ima!karl), The Walking Lint