Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
[parent not found: <m3n2q5hom4.fsf@spunky.virginia.edu>]
[parent not found: <199705081801.NAA24268@stommel.tamu.edu>]
* Re: segmentation fault with math lib
@ 1997-05-08 17:15 Hunter A. Ware
  0 siblings, 0 replies; 7+ messages in thread
From: Hunter A. Ware @ 1997-05-08 17:15 UTC (permalink / raw)


Have you tried to link with -lieee?  I was having wierd segfaults from
over and underflow until I did.

					Cheers,
						Hunter

-- 
	._ @	 A computer lets you make more mistakes faster than
~~~\   /  //\. any other invention, with the possible exceptions of
    \	 \>> | handguns and Tequilla. - Mitch Ratcliffe
     \	  \\					haw4t@virginia.edu

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <M.050797.205427.14@LOCALNAME>]
* segmentation fault with math lib
@ 1997-05-07 18:54 m.de.beurs
  0 siblings, 0 replies; 7+ messages in thread
From: m.de.beurs @ 1997-05-07 18:54 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]

I´m having a problem with making a program with uses the math library and I 
don´t know wether I´m doing something wrong, or my system is not correctly 
installed.

I have linux-axp version 2.0.25 for the dec multia.

I'm having problems with making a program with uses cos() and sin()
functions. If I don't use these functions everything goes ok. The program 
gives a core dump when started. The following is an example of the problem:

the test program (test.c):

#include <stdio.h>
#include <math.h>

main(void)
 {
    
    float
        a,b;

    a = 1.;
    b = sin(a);
    printf(" b = %f\n",b);
 }

compiling with:
gcc test.c -o test -lm

running:
test

and then the error:
Segmentation fault (core dumped)

running debug:
gdb test core

gives:
Program terminated with signal 11, Segmentation fault.
#0 0x1200083a4 in __libc_init ()

Can anyone help me with this?

Thanks,

M. de Beurs
m.de.beurs@pi.net

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-05-08 23:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.3.95.970508134813.3342B-100000@thebrain>
1997-05-08 23:09 ` segmentation fault with math lib Richard Henderson
     [not found] <m3n2q5hom4.fsf@spunky.virginia.edu>
1997-05-08 22:14 ` Zach
     [not found] <199705081801.NAA24268@stommel.tamu.edu>
1997-05-08 21:01 ` Zach
1997-05-08 17:15 Hunter A. Ware
     [not found] <M.050797.205427.14@LOCALNAME>
1997-05-08  0:19 ` Andrew D. Isaacson
1997-05-08 18:01 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1997-05-07 18:54 m.de.beurs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox