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]
Other format: [Raw text]

gsl problem on mdk 9.0..


hi,

I downloaded gsl-1.2 and found some problem running on mandrake
9.0. After I "configure" "make" and "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 -static -o kk kk.c -lgsl"
I got the following error message:
 /usr/bin/ld: cannot find -lc
 collect2: ld returned 1 exit status
The same error messages appear when I use gsl-1.1.1 on mandrake
9.0.

I tested the same program and compile command on cygwin, and it
does work. It also works on mandrake 8.2, and sun. So, maybe this
is a bug of Mandrake 9.0? or do I miss anything?

Please give me some suggestion. Thanks.

I-Lin Wang

-----------------------------------------------------------------
每天都 Yahoo!奇摩 
寬頻上網- 盡情享受遊戲、音樂與電影的聲光世界
adsl.yahoo.com.tw


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