From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <30f9b33d80c2dc81538f9f6e1bbb4f82.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199705071847.OAA21304@mailrelay.tiac.net> Date: Wed, 07 May 97 18:54:27 GMT From: m.de.beurs@pi.net Subject: segmentation fault with math lib 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 #include 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