This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

running gsl on mdk8.1


hi,

I downloaded gsl-1.0 and found some problem running on mandrake
8.1. After I "configure" "make" and then "su" to "make install",
it seems ok. Then, I test the small example in the manual:
---------------------file kk.c--------------------------
#include <stdio.h>
#include <gsl/gsl_rng.h>
gsl_rng *r;
int main()
{
  const gsl_rng_type *T;             
  gsl_rng_env_setup();
               
  T=gsl_rng_default;
  r=gsl_rng_alloc(T);
                                                                 
  printf("genetrator type: %s\n",gsl_rng_name(r));
  printf("seed=%u\n",gsl_rng_default_seed);
  printf("first value=%u\n",gsl_rng_get(r));
}
----------------------------------------------------
However, when I compile it as "gcc -o kk kk.c -lgsl"
I got the following error message:
/usr/local/lib/libgsl.so: undefined reference to `cblas_dsdot'
/usr/local/lib/libgsl.so: undefined reference to `cblas_dswap'
/usr/local/lib/libgsl.so: undefined reference to `cblas_zaxpy'
/usr/local/lib/libgsl.so: undefined reference to `cblas_dsyr2'
/usr/local/lib/libgsl.so: undefined reference to `cblas_ssyrk'
/usr/local/lib/libgsl.so: undefined reference to `cblas_drot'
/usr/local/lib/libgsl.so: undefined reference to `cblas_icamax'
/usr/local/lib/libgsl.so: undefined reference to `cblas_dtrmv'
/usr/local/lib/libgsl.so: undefined reference to `cblas_drotmg'
/usr/local/lib/libgsl.so: undefined reference to `cblas_isamax'
/usr/local/lib/libgsl.so: undefined reference to `cblas_izamax'
/usr/local/lib/libgsl.so: undefined reference to `cblas_dsymv'
/usr/local/lib/libgsl.so: undefined reference to `cblas_dgemv'
/usr/local/lib/libgsl.so: undefined reference to `cblas_dznrm2'
........
........(deleted)
/usr/local/lib/libgsl.so: undefined reference to `cblas_zswap'
/usr/local/lib/libgsl.so: undefined reference to `cblas_zgemm'
/usr/local/lib/libgsl.so: undefined reference to `cblas_zsyr2k'
/usr/local/lib/libgsl.so: undefined reference to `cblas_ssymm'
/usr/local/lib/libgsl.so: undefined reference to `cblas_zsymm'
/usr/local/lib/libgsl.so: undefined reference to `cblas_strsv'
/usr/local/lib/libgsl.so: undefined reference to
`cblas_zdotc_sub'
/usr/local/lib/libgsl.so: undefined reference to `cblas_csymm'
/usr/local/lib/libgsl.so: undefined reference to `cblas_cgerc'
/usr/local/lib/libgsl.so: undefined reference to `cblas_sswap'
/usr/local/lib/libgsl.so: undefined reference to `cblas_dcopy'
/usr/local/lib/libgsl.so: undefined reference to `cblas_ctrsm'
/usr/local/lib/libgsl.so: undefined reference to `cblas_zher'
/usr/local/lib/libgsl.so: undefined reference to `cblas_ssyr2k'
/usr/local/lib/libgsl.so: undefined reference to `cblas_srotmg'
/usr/local/lib/libgsl.so: undefined reference to `cblas_ctrmv'
/usr/local/lib/libgsl.so: undefined reference to `cblas_snrm2'
/usr/local/lib/libgsl.so: undefined reference to `cblas_drotm'
/usr/local/lib/libgsl.so: undefined reference to `cblas_idamax'
/usr/local/lib/libgsl.so: undefined reference to `cblas_cgemv'
/usr/local/lib/libgsl.so: undefined reference to `cblas_zgerc'
/usr/local/lib/libgsl.so: undefined reference to `cblas_scasum'
collect2: ld returned 1 exit status
---------------------------------------------------------
This is quite strange. Can you tell me whether I have done
something wrong? or is this a bug of gsl or Mandrake?

(On the other hand, the result that I installed in cygwin is
correct.)

Please reply me at your earliest convenience. Thanks.

I-Lin Wang
ilinwang@yahoo.com


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]