On Tue, Mar 11, 2003 at 14:43:06 +0000, Colin Watson wrote:
> It links fine, but if you link with -lm (not the default) then it seems
> you can get segfaults at run-time.

I think that if you use

  #include <math.h>

this generally means that you use some mathematical functions
(defined in the C standard), in which case you'll need to link
with -lm. Therefore, in most cases, '#define __STRICT_ANSI__'
or '#define _ISOC99_SOURCE' won't solve the problem, IMHO.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to