Re: C, math.h and globals
On Tue, Mar 11, 2003 at 01:40:49PM +0100, Vincent Lefevre wrote:
> On Tue, Mar 11, 2003 at 11:37:42 +0000, Colin Watson wrote:
> > You could '#define __STRICT_ANSI__' at the top of the program if you
> > want the C library to define only what's in bare ISO Standard C, or
> > '#define _ISOC99_SOURCE' for C99. With either of those y1() won't be
> > defined.
> It won't be defined in the header, but the corresponding symbol will
> still be defined in the library itself. Won't this be a problem when
It links fine, but if you link with -lm (not the default) then it seems
you can get segfaults at run-time.
Colin Watson [email@example.com]