[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Help: undefined reference to `__gxx_personality_v0'

From: Jinjun Xiong
Subject: [Help-gsl] Help: undefined reference to `__gxx_personality_v0'
Date: Fri, 7 Nov 2003 17:21:31 -0800

Hi, All


I met a problem while compile a sample program in GSL manual. Please
help me out!

I installed GSL successfully with passed "make check". (No share library
was configured while installation).

While I was compiling the program, there was an error saying
"undefined reference to `__gxx_personality_v0'". Below are the
commands I used (my default location is at /home/myId/gsl-1.4)

%gcc -I/home/myId/gsl-1.4/include/ -c
%gcc -L/home/myId/gsl-1.4/lib/ gsl_test.o -lgsl -lgslcblas -lm
gsl_test.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

Below is the sample program:
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>

main (void)
  double x = 5.0;
  double y = gsl_sf_bessel_J0 (x);
  printf ("J0(%g) = %.18e\n", x, y);
  return 0;

I need to use GSL for one of my course project. I would really
appreciate if anyone can give me a hint on how to fix the problem.


Best regards,
 Jinjun                          mailto:address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]